Mercurial > hg > nginx
comparison src/core/ngx_cycle.c @ 3750:ffbdaa3c70d6
the -q switch
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 02 Sep 2010 13:43:02 +0000 |
parents | 99b2da73c29d |
children | e3cb8e27e413 |
comparison
equal
deleted
inserted
replaced
3749:3ee39f593642 | 3750:ffbdaa3c70d6 |
---|---|
22 | 22 |
23 static ngx_pool_t *ngx_temp_pool; | 23 static ngx_pool_t *ngx_temp_pool; |
24 static ngx_event_t ngx_cleaner_event; | 24 static ngx_event_t ngx_cleaner_event; |
25 | 25 |
26 ngx_uint_t ngx_test_config; | 26 ngx_uint_t ngx_test_config; |
27 ngx_uint_t ngx_quiet_mode; | |
27 | 28 |
28 #if (NGX_THREADS) | 29 #if (NGX_THREADS) |
29 ngx_tls_key_t ngx_core_tls_key; | 30 ngx_tls_key_t ngx_core_tls_key; |
30 #endif | 31 #endif |
31 | 32 |
264 environ = senv; | 265 environ = senv; |
265 ngx_destroy_cycle_pools(&conf); | 266 ngx_destroy_cycle_pools(&conf); |
266 return NULL; | 267 return NULL; |
267 } | 268 } |
268 | 269 |
269 if (ngx_test_config) { | 270 if (ngx_test_config && !ngx_quiet_mode) { |
270 ngx_log_stderr(0, "the configuration file %s syntax is ok", | 271 ngx_log_stderr(0, "the configuration file %s syntax is ok", |
271 cycle->conf_file.data); | 272 cycle->conf_file.data); |
272 } | 273 } |
273 | 274 |
274 for (i = 0; ngx_modules[i]; i++) { | 275 for (i = 0; ngx_modules[i]; i++) { |