Red Hat Bugzilla – Bug 198468
configurable delay for killproc()
Last modified: 2007-11-30 17:07:26 EST
+++ This bug was initially created as a clone of Bug #198429 +++
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.
-- Additional comment from firstname.lastname@example.org on 2006-07-11 07:48 EST --
Created an attachment (id=132229)
-- Additional comment from email@example.com on 2006-07-11 07:51 EST --
Created an attachment (id=132230)
replacement patch which uses tabs for whitespace
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
adding qa_ack+ for 4.5
Added in CVS, will be in 7.93.26.EL-1 or later.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.