[SSSD] [PATCH] Resend SIGINT as SIGTERM in services
Stephen Gallagher
sgallagh at redhat.com
Thu Jun 24 13:32:08 UTC 2010
On 06/22/2010 11:51 AM, Jakub Hrozek wrote:
> -----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
Nack. As I think about this, I think that we should have the child
processes ignore SIGINT entirely. The monitor should be the exception:
it should catch the SIGINT and just put it through the SIGTERM processing.
This way, if we ever want to change how the monitor handles shutdown
(e.g. send a D-BUS message instead of signals to the children) we only
have to change it in one place.
--
Stephen Gallagher
RHCE 804006346421761
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
More information about the sssd-devel
mailing list