httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1392850 - /httpd/httpd/trunk/server/mpm/prefork/prefork.c
Date Tue, 02 Oct 2012 11:33:34 GMT
Author: trawick
Date: Tue Oct  2 11:33:34 2012
New Revision: 1392850

URL: http://svn.apache.org/viewvc?rev=1392850&view=rev
Log:
follow up to r1387633: use the right exit code depending on the error scenario

Modified:
    httpd/httpd/trunk/server/mpm/prefork/prefork.c

Modified: httpd/httpd/trunk/server/mpm/prefork/prefork.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/prefork/prefork.c?rev=1392850&r1=1392849&r2=1392850&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/prefork/prefork.c (original)
+++ httpd/httpd/trunk/server/mpm/prefork/prefork.c Tue Oct  2 11:33:34 2012
@@ -571,8 +571,9 @@ static void child_main(int child_num_arg
             if (!die_now) {
                 ap_log_error(APLOG_MARK, APLOG_EMERG, status, ap_server_conf, APLOGNO(00157)
                              "Couldn't add listener to pollset; check system or user limits");
+                clean_child_exit(APEXIT_CHILDSICK);
             }
-            clean_child_exit(APEXIT_CHILDSICK);
+            clean_child_exit(0);
         }
 
         lr->accept_func = ap_unixd_accept;



Mime
View raw message