]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
missed a couple.
authorGreg Ames <gregames@apache.org>
Fri, 6 May 2005 20:37:05 +0000 (20:37 +0000)
committerGreg Ames <gregames@apache.org>
Fri, 6 May 2005 20:37:05 +0000 (20:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@168649 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/experimental/event/event.c
server/mpm/worker/worker.c

index 194cedd6bc8906ea864c1f4d838ff413d8a4f8db..ce09103a4d29db1eef1396389595f4352871588c 100644 (file)
@@ -1439,11 +1439,8 @@ static void child_main(int child_num_arg)
     if (rv != APR_SUCCESS) {
         ap_log_error(APLOG_MARK, APLOG_ALERT, rv, ap_server_conf,
                      "apr_thread_create: unable to create worker thread");
-        /* In case system resources are maxxed out, we don't want
-           Apache running away with the CPU trying to fork over and
-           over and over again if we exit. */
-        apr_sleep(apr_time_from_sec(10));
-        clean_child_exit(APEXIT_CHILDFATAL);
+        /* let the parent decide how bad this really is */
+        clean_child_exit(APEXIT_CHILDSICK);
     }
 
     mpm_state = AP_MPMQ_RUNNING;
index 4eff2020e80717d62751d002eea611ab754a003b..4e8031a3903b22d080435697c5bfdd5f93fe04ce 100644 (file)
@@ -1173,11 +1173,8 @@ static void child_main(int child_num_arg)
     if (rv != APR_SUCCESS) {
         ap_log_error(APLOG_MARK, APLOG_ALERT, rv, ap_server_conf,
                      "apr_thread_create: unable to create worker thread");
-        /* In case system resources are maxxed out, we don't want
-           Apache running away with the CPU trying to fork over and
-           over and over again if we exit. */
-        apr_sleep(apr_time_from_sec(10));
-        clean_child_exit(APEXIT_CHILDFATAL);
+        /* let the parent decide how bad this really is */
+        clean_child_exit(APEXIT_CHILDSICK);
     }
 
     mpm_state = AP_MPMQ_RUNNING;