]> granicus.if.org Git - apache/commitdiff
wait for worker threads to exit even in graceless termination
authorJeff Trawick <trawick@apache.org>
Wed, 1 May 2002 16:05:59 +0000 (16:05 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 1 May 2002 16:05:59 +0000 (16:05 +0000)
(we already have code to make them exit sooner now)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94892 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/worker/worker.c

index 54b461bf13acb2950e1c11aa19c4591c69146fa1..5c3d2acf214ddb59503ec37c51117ec4aef670ef 100644 (file)
@@ -1312,16 +1312,14 @@ static void child_main(int child_num_arg)
             }
         }
 
-        if (rv == AP_GRACEFUL) {
-            /* A terminating signal was received. Now join each of the
-             * workers to clean them up.
-             *   If the worker already exited, then the join frees
-             *   their resources and returns.
-             *   If the worker hasn't exited, then this blocks until
-             *   they have (then cleans up).
-             */
-            join_workers(ts->listener, threads);
-        }
+        /* A terminating signal was received. Now join each of the
+         * workers to clean them up.
+         *   If the worker already exited, then the join frees
+         *   their resources and returns.
+         *   If the worker hasn't exited, then this blocks until
+         *   they have (then cleans up).
+         */
+        join_workers(ts->listener, threads);
     }
 
     free(threads);