From: Jeff Trawick Date: Wed, 1 May 2002 16:05:59 +0000 (+0000) Subject: wait for worker threads to exit even in graceless termination X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1f4779f36604b7aba71efec364a20d9226a0fee;p=apache wait for worker threads to exit even in graceless termination (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 --- diff --git a/server/mpm/worker/worker.c b/server/mpm/worker/worker.c index 54b461bf13..5c3d2acf21 100644 --- a/server/mpm/worker/worker.c +++ b/server/mpm/worker/worker.c @@ -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);