diff options
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 |