svn commit: r287236 - head/bin/df

Warner Losh imp at bsdimp.com
Fri Aug 28 13:25:21 UTC 2015


On Fri, Aug 28, 2015 at 1:48 AM, Garrett Cooper <yaneurabeya at gmail.com>
wrote:

>
> Libxo (iirc) doesn't install atexit handlers, which means that you need to
> use exit (or a reason facsimile) in order for it to flush its file streams.
>
> This is unintuitive though. I wish it did the right thing as part of
> initializing the streams..
>

Ummm, stdio streams are flushed if you return from main() too. If it has
internal buffered data it
hasn't delivered to stdio yet and hasn't installed atexit handlers, how on
earth can it flush anything
when you call exit().

Warner


More information about the svn-src-head mailing list