diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-11-29 15:00:02 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-11-29 15:00:02 +0000 |
commit | a979d9fb304e41e0be027d757dccaaba2b114a18 (patch) | |
tree | 2ed348f22feb3e429945e3b697d34454812f626a | |
parent | 8c6144f0221882b80a6806202f973da76796474a (diff) | |
download | nginx-a979d9fb304e41e0be027d757dccaaba2b114a18.tar.gz nginx-a979d9fb304e41e0be027d757dccaaba2b114a18.zip |
move ngx_strerror_init() at the very start
-rw-r--r-- | src/core/nginx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c index ffd63cf59..b8bab37e3 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -203,6 +203,10 @@ main(int argc, char *const *argv) ngx_cycle_t *cycle, init_cycle; ngx_core_conf_t *ccf; + if (ngx_strerror_init() != NGX_OK) { + return 1; + } + if (ngx_get_options(argc, argv) != NGX_OK) { return 1; } @@ -270,10 +274,6 @@ main(int argc, char *const *argv) ngx_pid = ngx_getpid(); - if (ngx_strerror_init() != NGX_OK) { - return 1; - } - log = ngx_log_init(ngx_prefix); if (log == NULL) { return 1; |