You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2012/10/02 13:33:34 UTC

svn commit: r1392850 - /httpd/httpd/trunk/server/mpm/prefork/prefork.c

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;