diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-10-24 15:46:48 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-10-24 15:46:48 +0000 |
commit | efc6ecab8255beedbe2f2148bb4d1dfeadf335b8 (patch) | |
tree | 8b094f0b718cdaeb6c30f129c7dc9664f8702615 /src/core | |
parent | b9c859e6d56710d2db0984e6e2fabef6d0ad2bfc (diff) | |
download | nginx-efc6ecab8255beedbe2f2148bb4d1dfeadf335b8.tar.gz nginx-efc6ecab8255beedbe2f2148bb4d1dfeadf335b8.zip |
malloc() debugging on MacOSX.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/nginx.c | 2 | ||||
-rw-r--r-- | src/core/ngx_slab.c | 4 |
2 files changed, 2 insertions, 4 deletions
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 |