From: Igor Sysoev Date: Mon, 29 Nov 2010 15:00:02 +0000 (+0000) Subject: move ngx_strerror_init() at the very start X-Git-Tag: release-0.9.0~4 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=a979d9fb304e41e0be027d757dccaaba2b114a18;p=nginx.git move ngx_strerror_init() at the very start --- 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;