[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: _Exit detection
From: |
Eric Blake |
Subject: |
Re: _Exit detection |
Date: |
Mon, 12 Jul 2010 23:38:48 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.0.5 |
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 address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature