|
Lines 363-368
static void just_die(int sig)
Link Here
|
| 363 |
|
363 |
|
| 364 |
static void stop_listening(int sig) |
364 |
static void stop_listening(int sig) |
| 365 |
{ |
365 |
{ |
|
|
366 |
mpm_state = AP_MPMQ_STOPPING; |
| 366 |
ap_close_listeners(); |
367 |
ap_close_listeners(); |
| 367 |
|
368 |
|
| 368 |
/* For a graceful stop, we want the child to exit when done */ |
369 |
/* For a graceful stop, we want the child to exit when done */ |
|
Lines 383-388
static void sig_term(int sig)
Link Here
|
| 383 |
*/ |
384 |
*/ |
| 384 |
return; |
385 |
return; |
| 385 |
} |
386 |
} |
|
|
387 |
mpm_state = AP_MPMQ_STOPPING; |
| 386 |
shutdown_pending = 1; |
388 |
shutdown_pending = 1; |
| 387 |
is_graceful = (sig == AP_SIG_GRACEFUL_STOP); |
389 |
is_graceful = (sig == AP_SIG_GRACEFUL_STOP); |
| 388 |
} |
390 |
} |
|
Lines 396-401
static void restart(int sig)
Link Here
|
| 396 |
/* Probably not an error - don't bother reporting it */ |
398 |
/* Probably not an error - don't bother reporting it */ |
| 397 |
return; |
399 |
return; |
| 398 |
} |
400 |
} |
|
|
401 |
mpm_state = AP_MPMQ_STOPPING; |
| 399 |
restart_pending = 1; |
402 |
restart_pending = 1; |
| 400 |
is_graceful = (sig == AP_SIG_GRACEFUL); |
403 |
is_graceful = (sig == AP_SIG_GRACEFUL); |
| 401 |
} |
404 |
} |
|
Lines 492-498
static int num_listensocks = 0;
Link Here
|
| 492 |
int ap_graceful_stop_signalled(void) |
495 |
int ap_graceful_stop_signalled(void) |
| 493 |
{ |
496 |
{ |
| 494 |
/* not ever called anymore... */ |
497 |
/* not ever called anymore... */ |
| 495 |
return 0; |
498 |
return mpm_state == AP_MPMQ_STOPPING; |
| 496 |
} |
499 |
} |
| 497 |
|
500 |
|
| 498 |
|
501 |
|