From: Aaron Bannert Date: Thu, 14 Feb 2002 02:49:07 +0000 (+0000) Subject: Fix other_child logic that would cause the mod_cgid process not X-Git-Tag: 2.0.33~268 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5700c79bc2e1e9396cd761659c69b1adecc39a81;p=apache Fix other_child logic that would cause the mod_cgid process not to properly die when the parent process shuts down. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93404 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index cec3199b3c..c5385af25b 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -245,7 +245,9 @@ static void cgid_maint(int reason, void *data, apr_wait_t status) switch (reason) { case APR_OC_REASON_DEATH: + case APR_OC_REASON_RESTART: /* don't do anything; server is stopping or restarting */ + apr_proc_other_child_unregister(data); break; case APR_OC_REASON_LOST: /* it would be better to restart just the cgid child @@ -255,9 +257,6 @@ static void cgid_maint(int reason, void *data, apr_wait_t status) */ kill(getpid(), AP_SIG_GRACEFUL); break; - case APR_OC_REASON_RESTART: - apr_proc_other_child_unregister(data); - break; case APR_OC_REASON_UNREGISTER: /* we get here when pcgi is cleaned up; pcgi gets cleaned * up when pconf gets cleaned up