From 1ee5e4b47f656145bb9bc18558f012780b49414a Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 22 Mar 2002 01:12:49 +0000 Subject: [PATCH] remove some unnecessary, commented-out code; add a comment about a use of signals git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94112 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/worker/worker.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/mpm/worker/worker.c b/server/mpm/worker/worker.c index 6208a750a0..b3b3b1d6b0 100644 --- a/server/mpm/worker/worker.c +++ b/server/mpm/worker/worker.c @@ -287,10 +287,6 @@ static void signal_threads(int mode) workers_may_exit = 1; ap_queue_interrupt_all(worker_queue); } - - /* XXX: This will happen naturally on a graceful, and we don't care - * otherwise. - ap_queue_signal_all_wakeup(worker_queue); */ } AP_DECLARE(apr_status_t) ap_mpm_query(int query_code, int *result) @@ -814,6 +810,11 @@ static void *listener_thread(apr_thread_t *thd, void * dummy) ap_queue_term(worker_queue); dying = 1; ap_scoreboard_image->parent[process_slot].quiescing = 1; + + /* XXX in one-process mode, this SIGTERM will wake up the main thread + * in normal mode, it is unclear what it will do... the main + * thread is stuck in a read on the POD + */ kill(ap_my_pid, SIGTERM); apr_thread_exit(thd, APR_SUCCESS); -- 2.40.0