[SSSD] [PATCH] Make default SIGTERM and SIGINT handlers use tevent
Stephen Gallagher
sgallagh at redhat.com
Thu Dec 2 12:48:41 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/02/2010 07:17 AM, Sumit Bose wrote:
> On Wed, Dec 01, 2010 at 09:33:40AM -0500, Stephen Gallagher wrote:
>
> It is very dangerous to allow a signal handler to call exit() directly,
> as it can fire in the middle of other calls that shouldn't be interrupted.
>
> This patch turns the default signal handler for SIGINT and SIGTERM
> events into a tevent signal handler which can call exit() safely, rather
> than a standard interrupt handler which will sometimes occur in unsafe
> places (such as quitting while a lock is held that prevents tevent's
> atexit functions from running)
>
>> ACK
Pushed to master.
- --
Stephen Gallagher
RHCE 804006346421761
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkz3laMACgkQeiVVYja6o6OVtACdF0YQkgy/1e+ZlhfH7gyBI5LS
Vt0AnR1fjBuZ8dAkjzndhPkpfx1G4OeH
=q9uc
-----END PGP SIGNATURE-----
More information about the sssd-devel
mailing list