aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-11-25 11:04:03 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-11-25 11:04:03 +0000
commit7f31a2098dcbd39ca60467f118e3f38c4e67ce5b (patch)
treea9b36c13880291aa2ffb007ad966e783b000ecc0 /src/core/nginx.c
parent40747ad861d1645febf4c3a43f5f0c3489decbf0 (diff)
downloadnginx-7f31a2098dcbd39ca60467f118e3f38c4e67ce5b.tar.gz
nginx-7f31a2098dcbd39ca60467f118e3f38c4e67ce5b.zip
use copied strerror() messages and autoconfigured sys_nerr value
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 0f19371e6..ffd63cf59 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -270,6 +270,10 @@ 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;