[SSSD] [PATCH] Make default SIGTERM and SIGINT handlers use tevent

Stephen Gallagher sgallagh at redhat.com
Wed Dec 1 14:33:40 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


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)

- -- 
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/

iEYEARECAAYFAkz2XL0ACgkQeiVVYja6o6MBKgCfVCAGosPMRuXGDCsdPajZXYR+
7IwAni0J+wJei/I/UCQH0uVq5CT8N5ro
=m+8r
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-default-SIGTERM-and-SIGINT-handlers-use-tevent.patch
Type: text/x-patch
Size: 2125 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101201/97eea4be/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-default-SIGTERM-and-SIGINT-handlers-use-tevent.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101201/97eea4be/attachment.sig>


More information about the sssd-devel mailing list