From efc6ecab8255beedbe2f2148bb4d1dfeadf335b8 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 24 Oct 2011 15:46:48 +0000 Subject: malloc() debugging on MacOSX. --- src/core/nginx.c | 2 -- src/core/ngx_slab.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/nginx.c b/src/core/nginx.c index 3a413e84e..da32c1a50 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -203,9 +203,7 @@ 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; diff --git a/src/core/ngx_slab.c b/src/core/ngx_slab.c index 870c59bad..9b5b28f2f 100644 --- a/src/core/ngx_slab.c +++ b/src/core/ngx_slab.c @@ -46,10 +46,10 @@ #else -#if (NGX_FREEBSD) +#if (NGX_HAVE_DEBUG_MALLOC) #define ngx_slab_junk(p, size) \ - if (ngx_freebsd_debug_malloc) ngx_memset(p, 0xD0, size) + if (ngx_debug_malloc) ngx_memset(p, 0xD0, size) #else -- cgit