comparison 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
comparison
equal deleted inserted replaced
251:c31c40540318 252:84b1c672ec5a
147 ngx_reopen = 1; 147 ngx_reopen = 1;
148 action = ", reopen logs"; 148 action = ", reopen logs";
149 break; 149 break;
150 150
151 case ngx_signal_value(NGX_CHANGEBIN_SIGNAL): 151 case ngx_signal_value(NGX_CHANGEBIN_SIGNAL):
152 if ((ngx_inherited && getppid() > 1) 152 if (getppid() > 1 || ngx_new_binary > 0) {
153 || (!ngx_inherited && ngx_new_binary > 0)) 153
154 {
155 /* 154 /*
156 * Ignore the signal in the new binary if its parent is 155 * Ignore the signal in the new binary if its parent is
157 * not the init process, i.e. the old binary's process 156 * not the init process, i.e. the old binary's process
158 * is still running. Or ingore the signal in the old binary's 157 * is still running. Or ingore the signal in the old binary's
159 * process if the new binary's process is already running. 158 * process if the new binary's process is already running.