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/core/nginx.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core') diff --git a/src/core/nginx.c b/src/core/nginx.c index 43f40c58d..634035637 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -384,6 +384,8 @@ static void ngx_master_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx) if (ngx_processes[i].pid == ngx_new_binary) { ngx_new_binary = 0; + + /* TODO: if (ngx_noaccept) ngx_configure = 1 */ } if (i != --ngx_last_process) { @@ -444,6 +446,10 @@ static void ngx_master_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx) if (ccf->worker_reopen > 0) { signo = ngx_signal_value(NGX_REOPEN_SIGNAL); ngx_reopen = 0; + + } else if (ngx_noaccept) { + ngx_reopen = 0; + } else { signo = ngx_signal_value(NGX_SHUTDOWN_SIGNAL); } -- cgit