]> granicus.if.org Git - apache/commitdiff
follow up to r1387633: use the right exit code depending on the error scenario
authorJeff Trawick <trawick@apache.org>
Tue, 2 Oct 2012 11:33:34 +0000 (11:33 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 2 Oct 2012 11:33:34 +0000 (11:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1392850 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/prefork.c

index 0c6254e1ec98d4aeb59dc2cab332adcd4951dfee..ae0fd37461f95c47313344e73333dcc408b2dfbd 100644 (file)
@@ -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;