diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-06-15 07:55:11 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-06-15 07:55:11 +0000 |
commit | 87350f269da4d82f2436aac91ae87fbd37ca6c16 (patch) | |
tree | 153b5d7d6bea91ad891de5168dd27d39e0082f66 /src/os/unix/ngx_posix_init.c | |
parent | f07f63ae46345eb2aa8a433b0bf48947d6cff95e (diff) | |
download | nginx-87350f269da4d82f2436aac91ae87fbd37ca6c16.tar.gz nginx-87350f269da4d82f2436aac91ae87fbd37ca6c16.zip |
nginx-0.0.7-2004-06-15-11:55:11 import
Diffstat (limited to 'src/os/unix/ngx_posix_init.c')
-rw-r--r-- | src/os/unix/ngx_posix_init.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/os/unix/ngx_posix_init.c b/src/os/unix/ngx_posix_init.c index dc96ddd85..e2ed96a90 100644 --- a/src/os/unix/ngx_posix_init.c +++ b/src/os/unix/ngx_posix_init.c @@ -46,6 +46,8 @@ ngx_signal_t signals[] = { { SIGINT, "SIGINT", ngx_signal_handler }, + { SIGIO, "SIGIO", ngx_signal_handler }, + { SIGCHLD, "SIGCHLD", ngx_signal_handler }, { SIGPIPE, "SIGPIPE, SIG_IGN", SIG_IGN }, @@ -172,11 +174,15 @@ void ngx_signal_handler(int signo) case SIGALRM: if (!ngx_terminate) { ngx_timer = 1; - action = ", shutting down old worker process"; + action = ", shutting down old worker processes"; } break; + case SIGIO: + ngx_sigio = 1; + break; + case SIGCHLD: ngx_reap = 1; break; @@ -206,6 +212,7 @@ void ngx_signal_handler(int signo) case ngx_signal_value(NGX_RECONFIGURE_SIGNAL): case ngx_signal_value(NGX_NOACCEPT_SIGNAL): case ngx_signal_value(NGX_CHANGEBIN_SIGNAL): + case SIGIO: action = ", ignoring"; break; } |