Mercurial > hg > nginx
comparison src/core/nginx.c @ 3798:61d64ab739a0
move ngx_strerror_init() at the very start
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 29 Nov 2010 15:00:02 +0000 |
parents | e294f37401c0 |
children | 2dd6c7cb211a |
comparison
equal
deleted
inserted
replaced
3797:96f17c930a9e | 3798:61d64ab739a0 |
---|---|
200 { | 200 { |
201 ngx_int_t i; | 201 ngx_int_t i; |
202 ngx_log_t *log; | 202 ngx_log_t *log; |
203 ngx_cycle_t *cycle, init_cycle; | 203 ngx_cycle_t *cycle, init_cycle; |
204 ngx_core_conf_t *ccf; | 204 ngx_core_conf_t *ccf; |
205 | |
206 if (ngx_strerror_init() != NGX_OK) { | |
207 return 1; | |
208 } | |
205 | 209 |
206 if (ngx_get_options(argc, argv) != NGX_OK) { | 210 if (ngx_get_options(argc, argv) != NGX_OK) { |
207 return 1; | 211 return 1; |
208 } | 212 } |
209 | 213 |
268 ngx_regex_init(); | 272 ngx_regex_init(); |
269 #endif | 273 #endif |
270 | 274 |
271 ngx_pid = ngx_getpid(); | 275 ngx_pid = ngx_getpid(); |
272 | 276 |
273 if (ngx_strerror_init() != NGX_OK) { | |
274 return 1; | |
275 } | |
276 | |
277 log = ngx_log_init(ngx_prefix); | 277 log = ngx_log_init(ngx_prefix); |
278 if (log == NULL) { | 278 if (log == NULL) { |
279 return 1; | 279 return 1; |
280 } | 280 } |
281 | 281 |