[SSSD] [PATCH] Resend SIGINT as SIGTERM in services

Jakub Hrozek jhrozek at redhat.com
Tue Jun 22 15:51:53 UTC 2010


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

When SSSD is running in foreground and Ctrl+C is pressed, the shell
sends SIGINT to all processes in the foreground process group, that
means not only monitor receives it. At the same time, the cleanup
routines we use are SIGTERM handlers, so I think the solution is to
catch SIGINT in all our services and just raise is again as SIGTERM to
allow the cleanup callbacks to be run.

Fixes: #462
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkwg3BkACgkQHsardTLnvCWGAACfZi1xBpKlNWzwpCgP3zPy7zWq
7gAAoK5tV3AcpeBHW5WQ9rq42We5964B
=Vy+1
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Resend-SIGINT-as-SIGTERM-in-services.patch
Type: text/x-patch
Size: 1518 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20100622/f58da11a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Resend-SIGINT-as-SIGTERM-in-services.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20100622/f58da11a/attachment.sig>


More information about the sssd-devel mailing list