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
*/
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