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 ]
|