From 49d7fd9298cb9bfba9e44f617a80cde4ed0d2a67 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Wed, 20 Mar 2002 07:49:02 +0000 Subject: [PATCH] No sense in opening this event when it's already opened in the parent. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94050 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/winnt/mpm_winnt.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index e1e289589e..0f54e2c46b 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -443,7 +443,22 @@ AP_DECLARE(void) ap_signal_parent(ap_signal_parent_e type) HANDLE e; char *signal_name; - if (one_process) { + if (parent_pid == my_pid) { + switch(type) { + case SIGNAL_PARENT_SHUTDOWN: + { + SetEvent(shutdown_event); + break; + } + /* This MPM supports only graceful restarts right now */ + case SIGNAL_PARENT_RESTART: + case SIGNAL_PARENT_RESTART_GRACEFUL: + { + is_graceful = 1; + SetEvent(restart_event); + break; + } + } return; } -- 2.40.0