]> granicus.if.org Git - apache/commit
Implement a "graceful-stop" for the prefork MPM (might aswell do the hard one
authorColm MacCarthaigh <colm@apache.org>
Fri, 26 Aug 2005 16:09:54 +0000 (16:09 +0000)
committerColm MacCarthaigh <colm@apache.org>
Fri, 26 Aug 2005 16:09:54 +0000 (16:09 +0000)
commitc6fb6c57d0fbf439da5e5e919ca95df05bd4e215
tree474f77120e6ea9d68219c36abb1b25e60d2fc5c4
parent432af0071e53b8d140929bb2b26bcb6408ef3dab
Implement a "graceful-stop" for the prefork MPM (might aswell do the hard one
first).

General approach is to send SIGUSR1 to all children (which will de-listen, and
exit when finished), and to gather all children as they exit.

We don't use a sleep(timeout) for the timeout implementation, because this
would lead to a rut of defunct children until the timeout had expired.

set_graceful_shutdown stolen from Ken Coar. See <3E84B1EC.3050007@Golux.Com>
(28 Mar 2003).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@240270 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
server/mpm/prefork/mpm.h
server/mpm/prefork/prefork.c