[SSSD] [PATCH] Resend SIGTERM if child doesn't terminat

Stephen Gallagher sgallagh at redhat.com
Wed Dec 1 17:14:15 UTC 2010


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

There is a race condition where if we send a SIGTERM before the
kernel has scheduled the child, it may be lost, and the child will
not terminate and will leave the monitor hung in wait().

This patch alters this behavior so that we will send the SIGTERM
again every 10ms and check the wait() in a nonblocking manner.



There is a simple script attached that can reproduce the original issue.
It will hang at random while running before this patch is applied.

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

iEYEARECAAYFAkz2gmcACgkQeiVVYja6o6Pz5gCdESzAyKV8f6WGcMStwNueTygm
VBkAn09A+6Q/y7Yxq8epih97IV3lQS8H
=XZq6
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Resend-SIGTERM-if-child-doesn-t-terminate.patch
Type: text/x-patch
Size: 4122 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101201/f0742ae1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: restart.sh
Type: application/x-sh
Size: 277 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101201/f0742ae1/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Resend-SIGTERM-if-child-doesn-t-terminate.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101201/f0742ae1/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: restart.sh.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101201/f0742ae1/attachment-0001.sig>


More information about the sssd-devel mailing list