aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-10-24 12:59:01 +0000
committerIgor Sysoev <igor@sysoev.ru>2011-10-24 12:59:01 +0000
commitb9c859e6d56710d2db0984e6e2fabef6d0ad2bfc (patch)
treea2c1b82c1344138b2b32f51a259543501eeb0e3d /src/core/nginx.c
parentce61ff9c453702d45998e1ae1394dc44e9c5eb6a (diff)
downloadnginx-b9c859e6d56710d2db0984e6e2fabef6d0ad2bfc.tar.gz
nginx-b9c859e6d56710d2db0984e6e2fabef6d0ad2bfc.zip
FreeBSD's MALLOC_OPTIONS must be set before any malloc() call.
The bug has been introduced in r3799.
Diffstat (limited to 'src/core/nginx.c')
-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 b8bab37e3..3a413e84e 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_FREEBSD)
+ ngx_debug_init();
+#endif
+
if (ngx_strerror_init() != NGX_OK) {
return 1;
}
@@ -260,10 +264,6 @@ main(int argc, char *const *argv)
}
}
-#if (NGX_FREEBSD)
- ngx_debug_init();
-#endif
-
/* TODO */ ngx_max_sockets = -1;
ngx_time_init();