diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2002-03-20 08:49:02 +0100 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2002-03-20 08:49:02 +0100 |
commit | cb7bb7bb8cbccf6347b952ee6d4a42fa49aa7738 (patch) | |
tree | dcf0f2f752b194db40bc7b5563b77ae3298b5430 /server/mpm | |
parent | Updated version of the PCRE lib under httpd-2.0/srclib (diff) | |
download | apache2-cb7bb7bb8cbccf6347b952ee6d4a42fa49aa7738.tar.xz apache2-cb7bb7bb8cbccf6347b952ee6d4a42fa49aa7738.zip |
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
Diffstat (limited to '')
-rw-r--r-- | server/mpm/winnt/mpm_winnt.c | 17 |
1 files changed, 16 insertions, 1 deletions
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; } |