DragonFly commits List (threaded) for 2008-07
DragonFly BSD
DragonFly commits List (threaded) for 2008-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sbin/hammer cmd_mirror.c


From: Johannes Hofmann <hofmann@xxxxxxxxxxxxxxxxxxxxxx>
Date: 05 Jul 2008 20:11:57 GMT

Joerg Sonnenberger <joerg@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



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