View | Details | Raw Unified | Return to bug 41743
Collapse All | Expand All

(-)server/mpm/prefork/prefork.c (+4 lines)
Lines 313-323 Link Here
313
313
314
static void just_die(int sig)
314
static void just_die(int sig)
315
{
315
{
316
    mpm_state = AP_MPMQ_STOPPING;
316
    clean_child_exit(0);
317
    clean_child_exit(0);
317
}
318
}
318
319
319
static void stop_listening(int sig)
320
static void stop_listening(int sig)
320
{
321
{
322
    mpm_state = AP_MPMQ_STOPPING;
321
    ap_close_listeners();
323
    ap_close_listeners();
322
324
323
    /* For a graceful stop, we want the child to exit when done */
325
    /* For a graceful stop, we want the child to exit when done */
Lines 331-336 Link Here
331
333
332
static void sig_term(int sig)
334
static void sig_term(int sig)
333
{
335
{
336
    mpm_state = AP_MPMQ_STOPPING;
334
    if (shutdown_pending == 1) {
337
    if (shutdown_pending == 1) {
335
        /* Um, is this _probably_ not an error, if the user has
338
        /* Um, is this _probably_ not an error, if the user has
336
         * tried to do a shutdown twice quickly, so we won't
339
         * tried to do a shutdown twice quickly, so we won't
Lines 347-352 Link Here
347
 */
350
 */
348
static void restart(int sig)
351
static void restart(int sig)
349
{
352
{
353
    mpm_state = AP_MPMQ_STOPPING;
350
    if (restart_pending == 1) {
354
    if (restart_pending == 1) {
351
        /* Probably not an error - don't bother reporting it */
355
        /* Probably not an error - don't bother reporting it */
352
        return;
356
        return;

Return to bug 41743