Mercurial > hg > nginx
comparison src/core/nginx.c @ 320:d621239c30f7
nginx-0.0.3-2004-04-18-23:06:02 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 18 Apr 2004 19:06:02 +0000 |
parents | 56496082668b |
children | ba876b26b76d |
comparison
equal
deleted
inserted
replaced
319:7a8ebba985a9 | 320:d621239c30f7 |
---|---|
138 ngx_modules[i]->index = ngx_max_module++; | 138 ngx_modules[i]->index = ngx_max_module++; |
139 } | 139 } |
140 | 140 |
141 cycle = ngx_init_cycle(&init_cycle); | 141 cycle = ngx_init_cycle(&init_cycle); |
142 if (cycle == NULL) { | 142 if (cycle == NULL) { |
143 if (ngx_test_config) { | |
144 ngx_log_error(NGX_LOG_EMERG, log, 0, | |
145 "the configuration file %s test failed", | |
146 init_cycle.conf_file.data); | |
147 } | |
148 | |
143 return 1; | 149 return 1; |
144 } | 150 } |
145 | 151 |
146 if (ngx_test_config) { | 152 if (ngx_test_config) { |
147 ngx_log_error(NGX_LOG_INFO, cycle->log, 0, "config syntax is ok"); | 153 ngx_log_error(NGX_LOG_INFO, log, 0, |
154 "the configuration file %s was tested successfully", | |
155 init_cycle.conf_file.data); | |
148 return 0; | 156 return 0; |
149 } | 157 } |
150 | 158 |
151 ngx_cycle = cycle; | 159 ngx_cycle = cycle; |
152 | 160 |