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

Sumit Bose sbose at redhat.com
Thu Dec 2 12:20:22 UTC 2010


On Wed, Dec 01, 2010 at 12:14:15PM -0500, Stephen Gallagher wrote:
> -----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.

I have to admit that I couldn't reproduce the issue, but I think the
patch is doing the right thing if a child does not respond to a signal.

ACK

bye,
Sumit


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



More information about the sssd-devel mailing list