fork on uClinux

Shaun Jackman sjackman at
Fri May 26 23:28:45 UTC 2006

On 5/26/06, Rich Felker <dalias at> 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 mailing list