int rv;
int i;
int num_events;
+ int graceful_shutdown = 0;
/* Get a sub context for global allocations in this child, so that
* we can have cleanups occur when the child exits.
ap_log_error(APLOG_MARK, APLOG_DEBUG, APR_SUCCESS, ap_server_conf, APLOGNO(00357)
"Child: Exit event signaled. Child process is "
"ending.");
+ graceful_shutdown = 1;
break;
}
else if (cld == 2) {
"MaxConnectionsPerChild. Signaling the parent to "
"restart a new child process.");
ap_signal_parent(SIGNAL_PARENT_RESTART);
+ graceful_shutdown = 1;
break;
}
}
*/
SetEvent(listener_shutdown_event);
+ /* Notify anyone interested that this child is stopping.
+ */
+ ap_run_child_stopping(pchild, graceful_shutdown);
+
Sleep(1000);
/* Tell the worker threads to exit */