Red Hat Bugzilla – Bug 198429
configurable delay for killproc()
Last modified: 2014-03-16 23:00:32 EDT
Description of problem:
I'll attach a patch which makes the delay between doing a SIGTERM and a SIGKILL
in killproc() configurable.
This can be used to fix a race condition in httpd shutdown. The httpd parent
will SIGTERM then SIGKILL children at shutdown in a similar way to how
killproc() will SIGTERM and then SIGKILL the httpd parent. But these two race
and sometimes the parent will get SIGKILLed before it manages to kill all its
children. This can leave orphans.
So making the killproc() delay configurable means we can ensure that httpd
always wins this race and cleans up its children before the parent gets cleaned up.
See also bug 184403.
Created attachment 132229 [details]
Created attachment 132230 [details]
replacement patch which uses tabs for whitespace
Added in CVS, will be in 8.36-1. Thanks!
*** Bug 187078 has been marked as a duplicate of this bug. ***