aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-04-16 05:14:16 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-04-16 05:14:16 +0000
commit630ad0c7b17b4e20d978706d3884995481f28b3c (patch)
tree794f7617a06a007f98149fa11c1ebc92827c29a5 /src/core/nginx.c
parent68df19d33ac5cf804650261867afd5f8acdce364 (diff)
downloadnginx-630ad0c7b17b4e20d978706d3884995481f28b3c.tar.gz
nginx-630ad0c7b17b4e20d978706d3884995481f28b3c.zip
nginx-0.0.3-2004-04-16-09:14:16 import
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 5f2603cfb..766257c8a 100644
--- 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;
}