diff src/core/nginx.c @ 2923:d9c46f98b09f

a signaller process should stop configuration processing just after it is able to get pid file, this allows to not open log files, etc.
author Igor Sysoev <igor@sysoev.ru>
date Sat, 06 Jun 2009 12:41:31 +0000
parents caa4f7dcf1e3
children adc4fc0c3cc3 08570d26c7c5
line wrap: on
line diff
--- a/src/core/nginx.c	Sat Jun 06 12:36:44 2009 +0000
+++ b/src/core/nginx.c	Sat Jun 06 12:41:31 2009 +0000
@@ -330,6 +330,10 @@
         return 0;
     }
 
+    if (ngx_signal) {
+        return ngx_signal_process(cycle, ngx_signal);
+    }
+
     ngx_os_status(cycle->log);
 
     ngx_cycle = cycle;
@@ -340,10 +344,6 @@
         ngx_process = NGX_PROCESS_MASTER;
     }
 
-    if (ngx_signal) {
-        return ngx_signal_process(cycle, ngx_signal);
-    }
-
 #if !(NGX_WIN32)
 
     if (ngx_init_signals(cycle->log) != NGX_OK) {