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
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]