mirror of
https://github.com/nginx/nginx.git
synced 2024-11-28 08:09:00 +08:00
FreeBSD's MALLOC_OPTIONS must be set before any malloc() call.
The bug has been introduced in r3799.
This commit is contained in:
parent
ce61ff9c45
commit
b9c859e6d5
@ -203,6 +203,10 @@ main(int argc, char *const *argv)
|
|||||||
ngx_cycle_t *cycle, init_cycle;
|
ngx_cycle_t *cycle, init_cycle;
|
||||||
ngx_core_conf_t *ccf;
|
ngx_core_conf_t *ccf;
|
||||||
|
|
||||||
|
#if (NGX_FREEBSD)
|
||||||
|
ngx_debug_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (ngx_strerror_init() != NGX_OK) {
|
if (ngx_strerror_init() != NGX_OK) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -260,10 +264,6 @@ main(int argc, char *const *argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (NGX_FREEBSD)
|
|
||||||
ngx_debug_init();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* TODO */ ngx_max_sockets = -1;
|
/* TODO */ ngx_max_sockets = -1;
|
||||||
|
|
||||||
ngx_time_init();
|
ngx_time_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user