Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-11-29 18:00:02 +0300
committerIgor Sysoev <igor@sysoev.ru>2010-11-29 18:00:02 +0300
commita979d9fb304e41e0be027d757dccaaba2b114a18 (patch)
tree2ed348f22feb3e429945e3b697d34454812f626a /src
parent8c6144f0221882b80a6806202f973da76796474a (diff)
move ngx_strerror_init() at the very start
Diffstat (limited to 'src')
-rw-r--r--src/core/nginx.c8
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;