Joerg Sonnenberger <[EMAIL PROTECTED]> wrote: > On Sat, Jul 05, 2008 at 07:13:30PM +0000, Johannes Hofmann wrote: >> a stupid question... Why is _exit() used here instead of exit()? I >> understand, that _exit() has to be used in combination with vfork(), >> but why is it used with plain fork()? > > To prevent double flushing of stdio streams.
Ah ok, buffered data get's duplicated by fork and would then be flushed twice. Thanks, Johannes > > Joerg
