[Freeipa-devel] [PATCH] Make child processes exit when parent dies

Jakub Hrozek jhrozek at redhat.com
Tue Aug 11 14:44:32 UTC 2009


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

On 08/06/2009 05:13 PM, Jakub Hrozek wrote:
> We could catch most signals the way we do catch SIGTERM and relay them
> to children. This still wouldn't cover the SIGKILL case where the admin
> shoots down monitor. This is cross-platform which is of course huge
> advantage.
> 
> But in my opinion, we should still use prctl() where available, because
> it is much cleaner solution -- you don't have to explicitly enumerate
> all the signals to handle and you can also cover the SIGKILL case.
> 

Attached is a patch that says the same in C.

	Jakub
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkqBg9AACgkQHsardTLnvCVgbACgiRfGHqtEXzTKw1VO1rk15PJp
RYIAoI7c/zqImOxM5g9GgBlRfmF+m+UN
=2z7H
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-child-processes-exit-when-parent-dies.patch
Type: text/x-patch
Size: 5988 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20090811/f1ed376d/attachment.bin>


More information about the Freeipa-devel mailing list