]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r552029 from trunk:
authorJim Jagielski <jim@apache.org>
Sat, 31 May 2008 11:57:54 +0000 (11:57 +0000)
committerJim Jagielski <jim@apache.org>
Sat, 31 May 2008 11:57:54 +0000 (11:57 +0000)
* server/mpm/prefork/prefork.c (child_main): Stop processing new
connections if shutdown_pending is set, i.e. when SIGTERM is received
in single-proecss mode.

Submitted by: Garrett Rooney <rooneg apache.org>
PR: 38848

Submitted by: jorton
Reviewed by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@662012 13f79535-47bb-0310-9956-ffa450edef68

STATUS
server/mpm/prefork/prefork.c

diff --git a/STATUS b/STATUS
index ace5896f879202211bbc7d4459db73d9ad3280da..b751e4afbb9f8fa2dad1a672f1233c8e710c6295 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -107,15 +107,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
          Trunk version of patch works
     +1: jim, jorton, rpluem
 
- * prefork: Stop processing new connections if shutdown_pending is set,
-   i.e. when SIGTERM is received in single-process mode.
-   PR 38848
-   Trunk version of patch:
-         http://svn.apache.org/viewvc?view=rev&revision=552029
-   Backport version for 2.2.x of patch:
-         Trunk version of patch works
-    +1: jim, jorton, rpluem
-
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
 
index d3c93a63f6854d159298a4e84e332fb63623820e..ada2990fc3ad0424594755ed0e06365161bdc834 100644 (file)
@@ -536,7 +536,10 @@ static void child_main(int child_num_arg)
 
     bucket_alloc = apr_bucket_alloc_create(pchild);
 
-    while (!die_now) {
+    /* die_now is set when AP_SIG_GRACEFUL is received in the child;
+     * shutdown_pending is set when SIGTERM is received when running
+     * in single process mode.  */
+    while (!die_now && !shutdown_pending) {
         conn_rec *current_conn;
         void *csd;