fork on uClinux
sjackman at gmail.com
Fri May 26 23:28:45 UTC 2006
On 5/26/06, Rich Felker <dalias at aerifal.cx> wrote:
> Normally you want to use _exit instead of exit regardless of whether
> you fork or vfork. Otherwise stdout (and any other streams) will be
> flushed in both parent and child and the data will be written twice,
> resulting in file corruption.
This behaviour is true only of vfork and not of fork. Forked processes
do not share a data segment, and so closing streams in one does not
affect the other.
More information about the uClibc