move ngx_strerror_init() at the very start
Igor Sysoev
11 years ago
201 | 201 | ngx_log_t *log; |
202 | 202 | ngx_cycle_t *cycle, init_cycle; |
203 | 203 | ngx_core_conf_t *ccf; |
204 | ||
205 | if (ngx_strerror_init() != NGX_OK) { | |
206 | return 1; | |
207 | } | |
204 | 208 | |
205 | 209 | if (ngx_get_options(argc, argv) != NGX_OK) { |
206 | 210 | return 1; |
269 | 273 | |
270 | 274 | ngx_pid = ngx_getpid(); |
271 | 275 | |
272 | if (ngx_strerror_init() != NGX_OK) { | |
273 | return 1; | |
274 | } | |
275 | ||
276 | 276 | log = ngx_log_init(ngx_prefix); |
277 | 277 | if (log == NULL) { |
278 | 278 | return 1; |