diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-06-06 12:41:31 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-06-06 12:41:31 +0000 |
commit | 165aa392306489574c7bbe9b491b52e9a1c1650e (patch) | |
tree | 6b3e42edfda9e70f3cd5343c5ca6a8f53e05281c /src/core/nginx.c | |
parent | 7b6b09f1058853535f48be9b64e278913bb035e7 (diff) | |
download | nginx-165aa392306489574c7bbe9b491b52e9a1c1650e.tar.gz nginx-165aa392306489574c7bbe9b491b52e9a1c1650e.zip |
a signaller process should stop configuration processing just after
it is able to get pid file, this allows to not open log files, etc.
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r-- | src/core/nginx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c index eec48bfa7..ff7a9f848 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -330,6 +330,10 @@ main(int argc, char *const *argv) return 0; } + if (ngx_signal) { + return ngx_signal_process(cycle, ngx_signal); + } + ngx_os_status(cycle->log); ngx_cycle = cycle; @@ -340,10 +344,6 @@ main(int argc, char *const *argv) 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) { |