Index: server/mpm/prefork/prefork.c =================================================================== --- server/mpm/prefork/prefork.c (revision 1066660) +++ server/mpm/prefork/prefork.c (working copy) @@ -313,11 +313,13 @@ static void just_die(int sig) { + mpm_state = AP_MPMQ_STOPPING; clean_child_exit(0); } static void stop_listening(int sig) { + mpm_state = AP_MPMQ_STOPPING; ap_close_listeners(); /* For a graceful stop, we want the child to exit when done */ @@ -331,6 +333,7 @@ static void sig_term(int sig) { + mpm_state = AP_MPMQ_STOPPING; if (shutdown_pending == 1) { /* Um, is this _probably_ not an error, if the user has * tried to do a shutdown twice quickly, so we won't @@ -347,6 +350,7 @@ */ static void restart(int sig) { + mpm_state = AP_MPMQ_STOPPING; if (restart_pending == 1) { /* Probably not an error - don't bother reporting it */ return;