Re: fork opens sth?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




No it doesn't, of course. It was a late night halusination... sorry!

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.
> 
> What I found, as a workaround is close(3). But, I don't know this will 
> be the right thing to do.


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



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux