Mercurial > hg > nginx
diff src/core/nginx.c @ 318:56496082668b
nginx-0.0.3-2004-04-16-09:14:16 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 16 Apr 2004 05:14:16 +0000 |
parents | 1308b98496a2 |
children | d621239c30f7 |
line wrap: on
line diff
--- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -77,8 +77,6 @@ ngx_pid_t ngx_pid; ngx_pid_t ngx_new_binary; ngx_int_t ngx_inherited; -ngx_uint_t ngx_test_config; - int main(int argc, char *const *argv) { @@ -146,6 +144,7 @@ int main(int argc, char *const *argv) } if (ngx_test_config) { + ngx_log_error(NGX_LOG_INFO, cycle->log, 0, "config syntax is ok"); return 0; } @@ -181,7 +180,12 @@ int main(int argc, char *const *argv) #endif - ngx_master_process_cycle(cycle, &ctx); + if (ngx_process == NGX_PROCESS_MASTER) { + ngx_master_process_cycle(cycle, &ctx); + + } else { + ngx_single_process_cycle(cycle, &ctx); + } return 0; }