diff src/os/unix/ngx_posix_init.c @ 252:84b1c672ec5a

nginx-0.0.2-2004-02-05-19:58:36 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 05 Feb 2004 16:58:36 +0000
parents c31c40540318
children 55e496a8ece3
line wrap: on
line diff
--- 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