]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1363183 from trunk:
authorJeff Trawick <trawick@apache.org>
Fri, 27 Jul 2012 19:51:57 +0000 (19:51 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 27 Jul 2012 19:51:57 +0000 (19:51 +0000)
mpm_prefork: Reduce spawn rate after a child process exits due to
unexpected poll or accept failure.

Submitted by: trawick
Reviewed by:  jorton, rjung

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

CHANGES
STATUS
server/mpm/prefork/prefork.c

diff --git a/CHANGES b/CHANGES
index b46a9e995bad9688b5a53bc01e1f9b12666bd188..c6928d8492ab376a549fc80ce4738bd0318cacd5 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,9 @@ Changes with Apache 2.2.23
      envvars: Fix insecure handling of LD_LIBRARY_PATH that could lead to the
      current working directory to be searched for DSOs. [Stefan Fritsch]
 
+  *) mpm_prefork: Reduce spawn rate after a child process exits due to
+     unexpected poll or accept failure.  [Jeff Trawick]
+
   *) core: Adjust ap_scan_script_header_err*() to prevent mod_cgi and mod_cgid
      from logging bogus data in case of errors. [Stefan Fritsch]
 
diff --git a/STATUS b/STATUS
index e094ae5fcb547b9f3ff31e643307a1c0befb7d79..33ec368edf2fca16ccdb9808db9e45f110ba2f37 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -103,12 +103,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
     sf notes: The docs should get a compatibility note once it is clear
               in which 2.2.x version it gets introduced.
 
-   * mpm_prefork: Reduce spawn rate after a child process exits due to
-     unexpected poll or accept failure.
-     trunk patch: http://svn.apache.org/viewvc?rev=1363183&view=rev
-     2.2.x patch: trunk patch works
-     +1: trawick, jorton, rjung
-
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
 
index 108f961ae29c5d7d5bd54ee1e0033acc3c3dea7c..9f800069e8b2e278e57c3d9d3ca82ca9592bd978 100644 (file)
@@ -614,7 +614,7 @@ static void child_main(int child_num_arg)
                     ap_log_error(APLOG_MARK, APLOG_ERR, status,
                                  ap_server_conf, "apr_pollset_poll: (listen)");
                     SAFE_ACCEPT(accept_mutex_off());
-                    clean_child_exit(1);
+                    clean_child_exit(APEXIT_CHILDSICK);
                 }
 
                 /* We can always use pdesc[0], but sockets at position N
@@ -651,7 +651,7 @@ static void child_main(int child_num_arg)
 
         if (status == APR_EGENERAL) {
             /* resource shortage or should-not-occur occured */
-            clean_child_exit(1);
+            clean_child_exit(APEXIT_CHILDSICK);
         }
         else if (status != APR_SUCCESS) {
             continue;