aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-02-05 16:58:36 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-02-05 16:58:36 +0000
commit9260294400c902904cdf791c9c2e8fd069feec63 (patch)
treea330c9600bd1b998e44a4c15adf26868afc2dd67 /src/core/nginx.c
parentc5371672852b64e7337f08d78ff4c1b3c0b6d159 (diff)
downloadnginx-9260294400c902904cdf791c9c2e8fd069feec63.tar.gz
nginx-9260294400c902904cdf791c9c2e8fd069feec63.zip
nginx-0.0.2-2004-02-05-19:58:36 import
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c6
1 files changed, 6 insertions, 0 deletions
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);
}