On Tue, Nov 27, 2001 at 07:29:44AM +0000, Muzaffer Ozakca wrote: > Hi, > > I noticed that after forking a child, an open() returns 4 as the file > descriptor where I suppose it to be 3, because the parent does not open > any file/pipe or anything before fork. Am I missing sth here? It is not > mentioned anywhere that fork() opens anything. Here's works fine. After fork(), an open() executed returns 3 in parent and child process. I'm using kernel 2.4.12. -- Flávio Bruno Leitner -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/