]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
use graceful exit if lister started
authorEric Covener <covener@apache.org>
Tue, 12 Mar 2024 00:28:34 +0000 (00:28 +0000)
committerEric Covener <covener@apache.org>
Tue, 12 Mar 2024 00:28:34 +0000 (00:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916243 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/event/event.c

index e4af652ba3cccc9b55e1a365684ad7850bcd92dd..831d3c2516107f44bd43ced589b840e888f921e9 100644 (file)
@@ -2749,7 +2749,7 @@ static void *APR_THREAD_FUNC start_threads(apr_thread_t * thd, void *dummy)
                              APLOGNO(03104)
                              "ap_thread_create: unable to create worker thread");
                 /* let the parent decide how bad this really is */
-                signal_threads(ST_UNGRACEFUL);
+                signal_threads(listener_started ? ST_GRACEFUL : ST_UNGRACEFUL);
                 clean_child_exit(APEXIT_CHILDSICK);
             }
             threads_created++;