diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-02-05 19:58:36 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-02-05 19:58:36 +0300 |
commit | 9260294400c902904cdf791c9c2e8fd069feec63 (patch) | |
tree | a330c9600bd1b998e44a4c15adf26868afc2dd67 /src/os/unix/ngx_posix_init.c | |
parent | c5371672852b64e7337f08d78ff4c1b3c0b6d159 (diff) |
nginx-0.0.2-2004-02-05-19:58:36 import
Diffstat (limited to 'src/os/unix/ngx_posix_init.c')
-rw-r--r-- | src/os/unix/ngx_posix_init.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/os/unix/ngx_posix_init.c b/src/os/unix/ngx_posix_init.c index 4e7233919..65c04a959 100644 --- a/src/os/unix/ngx_posix_init.c +++ b/src/os/unix/ngx_posix_init.c @@ -149,9 +149,8 @@ void ngx_signal_handler(int signo) break; case ngx_signal_value(NGX_CHANGEBIN_SIGNAL): - if ((ngx_inherited && getppid() > 1) - || (!ngx_inherited && ngx_new_binary > 0)) - { + if (getppid() > 1 || ngx_new_binary > 0) { + /* * Ignore the signal in the new binary if its parent is * not the init process, i.e. the old binary's process |