cvs commit: src/sbin/hammer cmd_mirror.c

Johannes Hofmann hofmann at blob.baaderstrasse.com
Sat Jul 5 13:11:57 PDT 2008


Joerg Sonnenberger <joerg at britannica.bec.de> 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





More information about the Commits mailing list