Mercurial > hg > nginx
comparison src/core/nginx.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 | b6793bc5034b |
comparison
equal
deleted
inserted
replaced
251:c31c40540318 | 252:84b1c672ec5a |
---|---|
382 continue; | 382 continue; |
383 } | 383 } |
384 | 384 |
385 if (ngx_processes[i].pid == ngx_new_binary) { | 385 if (ngx_processes[i].pid == ngx_new_binary) { |
386 ngx_new_binary = 0; | 386 ngx_new_binary = 0; |
387 | |
388 /* TODO: if (ngx_noaccept) ngx_configure = 1 */ | |
387 } | 389 } |
388 | 390 |
389 if (i != --ngx_last_process) { | 391 if (i != --ngx_last_process) { |
390 ngx_processes[i--] = | 392 ngx_processes[i--] = |
391 ngx_processes[ngx_last_process]; | 393 ngx_processes[ngx_last_process]; |
442 if (ngx_reopen) { | 444 if (ngx_reopen) { |
443 if (ngx_process == NGX_PROCESS_MASTER) { | 445 if (ngx_process == NGX_PROCESS_MASTER) { |
444 if (ccf->worker_reopen > 0) { | 446 if (ccf->worker_reopen > 0) { |
445 signo = ngx_signal_value(NGX_REOPEN_SIGNAL); | 447 signo = ngx_signal_value(NGX_REOPEN_SIGNAL); |
446 ngx_reopen = 0; | 448 ngx_reopen = 0; |
449 | |
450 } else if (ngx_noaccept) { | |
451 ngx_reopen = 0; | |
452 | |
447 } else { | 453 } else { |
448 signo = ngx_signal_value(NGX_SHUTDOWN_SIGNAL); | 454 signo = ngx_signal_value(NGX_SHUTDOWN_SIGNAL); |
449 } | 455 } |
450 | 456 |
451 } else { /* NGX_PROCESS_SINGLE */ | 457 } else { /* NGX_PROCESS_SINGLE */ |