From 9260294400c902904cdf791c9c2e8fd069feec63 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 5 Feb 2004 16:58:36 +0000 Subject: nginx-0.0.2-2004-02-05-19:58:36 import --- src/os/unix/ngx_posix_init.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/os') 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 -- cgit