aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_posix_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/unix/ngx_posix_init.c')
-rw-r--r--src/os/unix/ngx_posix_init.c9
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;
}