Can not open a device file in /dev/ after in child process
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Can not open a device file in /dev/ after in child process




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Can not open a device file in /dev/ after in child process  
Max


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-17-06 06:16 PM

Hi,
I am facing a typical problem. In between one of my programs I need to
fork() a child process and in that child I need to open a device file
in /dev/. I wrote the code when I try to run it I find that that file
can not be opened. But if I just comment out the fork() portion and
simply open it I can open.
I can not understand what is happenning. Can any body help me to solve
this problem ??
Regards
Andi






[ Post a follow-up to this message ]



    Re: Can not open a device file in /dev/ after in child process  
Chuck Dillon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-17-06 06:16 PM

Max wrote:
> Hi,
> I am facing a typical problem. In between one of my programs I need to
> fork() a child process and in that child I need to open a device file
> in /dev/. I wrote the code when I try to run it I find that that file
> can not be opened. But if I just comment out the fork() portion and
> simply open it I can open.
> I can not understand what is happenning. Can any body help me to solve
> this problem ??
> Regards
> Andi
>

"can't open" isn't very informative.  If you want help don't withhold
information.  What makes you think you can't open it?  If open is
failing what is the system telling you?  Once you understand what it is
telling you if that doesn't lead you to a solution then post all you
know (i.e. what specifically is the file, what does open return, what
error do you get) when you ask for help.

HTH,

-- ced

--
Chuck Dillon
Manager of Software Development, Bioinformatics
NimbleGen Systems Inc.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:10 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register