comparison src/core/nginx.c @ 449:3b1e8c9df9ad

nginx-0.1.0-2004-10-04-00:02:06 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 03 Oct 2004 20:02:06 +0000
parents 241dc8092a33
children 23fb87bddda1
comparison
equal deleted inserted replaced
448:241dc8092a33 449:3b1e8c9df9ad
87 NGX_MODULE, 87 NGX_MODULE,
88 &ngx_core_module_ctx, /* module context */ 88 &ngx_core_module_ctx, /* module context */
89 ngx_core_commands, /* module directives */ 89 ngx_core_commands, /* module directives */
90 NGX_CORE_MODULE, /* module type */ 90 NGX_CORE_MODULE, /* module type */
91 NULL, /* init module */ 91 NULL, /* init module */
92 NULL /* init child */ 92 NULL /* init process */
93 }; 93 };
94 94
95 95
96 ngx_uint_t ngx_max_module; 96 ngx_uint_t ngx_max_module;
97 97
144 return 1; 144 return 1;
145 } 145 }
146 146
147 if (ngx_test_config) { 147 if (ngx_test_config) {
148 log->log_level = NGX_LOG_INFO; 148 log->log_level = NGX_LOG_INFO;
149 } else {
150 if (ngx_log_init_error_log() == NGX_ERROR) {
151 return 1;
152 }
153 } 149 }
154 150
155 if (ngx_os_init(log) == NGX_ERROR) { 151 if (ngx_os_init(log) == NGX_ERROR) {
156 return 1; 152 return 1;
157 } 153 }
180 ngx_log_error(NGX_LOG_INFO, log, 0, 176 ngx_log_error(NGX_LOG_INFO, log, 0,
181 "the configuration file %s was tested successfully", 177 "the configuration file %s was tested successfully",
182 init_cycle.conf_file.data); 178 init_cycle.conf_file.data);
183 return 0; 179 return 0;
184 } 180 }
181
182 ngx_os_status(cycle->log);
185 183
186 ngx_cycle = cycle; 184 ngx_cycle = cycle;
187 185
188 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); 186 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
189 187