diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-01-13 09:39:14 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-01-13 09:39:14 +0300 |
commit | 993dc06b4e39daff4650afea5a7c2d11784d1c78 (patch) | |
tree | e02c5eb591273354592cc0e8284f68e4afa85773 /src/os/unix/ngx_process.c | |
parent | baf61e10d5ef7ad2c57e8f89e7ba5b11e5622c8f (diff) |
nginx-0.0.1-2004-01-13-09:39:14 import
Diffstat (limited to 'src/os/unix/ngx_process.c')
-rw-r--r-- | src/os/unix/ngx_process.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os/unix/ngx_process.c b/src/os/unix/ngx_process.c index 685b0d150..b660d8bec 100644 --- a/src/os/unix/ngx_process.c +++ b/src/os/unix/ngx_process.c @@ -70,6 +70,7 @@ ngx_int_t ngx_spawn_process(ngx_cycle_t *cycle, (respawn == NGX_PROCESS_RESPAWN) ? 1 : 0; ngx_processes[ngx_last_process].detached = (respawn == NGX_PROCESS_DETACHED) ? 1 : 0; + ngx_processes[ngx_last_process].signal = 0; ngx_processes[ngx_last_process].exited = 0; ngx_processes[ngx_last_process].exiting = 0; ngx_last_process++; @@ -118,7 +119,7 @@ void ngx_signal_processes(ngx_cycle_t *cycle, ngx_int_t signo) for (i = 0; i < ngx_last_process; i++) { - if (ngx_processes[i].detached) { + if (!ngx_processes[i].signal) { continue; } |