1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-26 19:01:35 +03:00

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
This commit is contained in:
William A. Rowe Jr
2002-03-20 07:49:02 +00:00
parent 1105d412cc
commit cb7bb7bb8c

View File

@@ -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;
}