[OT]-ish: Can someone explain this?

Andrew Suffield asuffield at suffields.me.uk
Mon Jul 4 18:59:46 BST 2011


On Mon, Jul 04, 2011 at 04:40:48PM +0100, David Cantrell wrote:
> On Sat, Jul 02, 2011 at 05:32:38PM +0100, Dirk Koopman wrote:
> 
> > Here is a bit of C code that is part of something much bigger.
> > 
> > 	_exit(0);	
> 
> Why _exit instead of exit?
> 
> exit() DTRT with flushing filehandles.

Yeah, I forgot to say earlier:

You almost never want to call _exit() unless you're implementing libc
or doing evil things with fork().


More information about the london.pm mailing list