if (one_process) {
prefork_note_child_killed(/* slot */ 0, 0, 0);
+ /* no POD to close in one_process mode */
+ }
+ else {
+ ap_mpm_pod_close(my_bucket->pod);
}
- ap_mpm_pod_close(my_bucket->pod);
chdir_for_gprof();
exit(code);
}
* while we were processing the connection or we are the lucky
* idle server process that gets to die.
*/
- if (ap_mpm_pod_check(my_bucket->pod) == APR_SUCCESS) { /* selected as idle? */
+ if (!one_process /* no POD in one_process mode */
+ && ap_mpm_pod_check(my_bucket->pod) == APR_SUCCESS) { /* selected as idle? */
die_now = 1;
}
else if (retained->mpm->my_generation !=
return DONE;
}
- /* we've been told to restart */
- if (one_process) {
- /* not worth thinking about */
- return DONE;
- }
-
if (!retained->mpm->is_ungraceful) {
ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, ap_server_conf, APLOGNO(00171)
"Graceful restart requested, doing restart");