summaryrefslogtreecommitdiffstats
path: root/server/mpm/winnt/mpm_winnt.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2002-03-20 08:49:02 +0100
committerWilliam A. Rowe Jr <wrowe@apache.org>2002-03-20 08:49:02 +0100
commitcb7bb7bb8cbccf6347b952ee6d4a42fa49aa7738 (patch)
treedcf0f2f752b194db40bc7b5563b77ae3298b5430 /server/mpm/winnt/mpm_winnt.c
parentUpdated version of the PCRE lib under httpd-2.0/srclib (diff)
downloadapache2-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.c17
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;
}