On 07/12/2010 05:17 PM, Paul Eggert wrote: > On 07/12/10 14:44, Karl Berry wrote: >> Sorry for my ignorance, but what's the advantage for RCS of using _exit >> or _Exit instead of just plain exit() and thus eliminating the >> complications? > > Signals. Plain exit() isn't guaranteed to work in a signal handler.
Also, atexit() handlers. Calling exit() recursively has unspecified results, so an atexit() handler that must exit with non-zero status (such as gnulib's close-out module that forces non-zero status if there was any write error to stdout) must use _[eE]xit(). -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature