diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-12-05 17:07:27 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-12-05 17:07:27 +0000 |
commit | 62260f2a158e27e5f6b1689e10dc25ea3c617473 (patch) | |
tree | d37c7d3f837c9f477a5010adedcbe98be89e735c /src/os | |
parent | faca119aa5b2375d247c4948ba6791e7d8d2b8bc (diff) | |
download | nginx-62260f2a158e27e5f6b1689e10dc25ea3c617473.tar.gz nginx-62260f2a158e27e5f6b1689e10dc25ea3c617473.zip |
nginx-0.0.1-2003-12-05-20:07:27 import
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/unix/ngx_freebsd_config.h | 2 | ||||
-rw-r--r-- | src/os/unix/ngx_freebsd_init.c | 14 | ||||
-rw-r--r-- | src/os/unix/ngx_os.h | 1 |
3 files changed, 17 insertions, 0 deletions
diff --git a/src/os/unix/ngx_freebsd_config.h b/src/os/unix/ngx_freebsd_config.h index f208bf16c..04524b452 100644 --- a/src/os/unix/ngx_freebsd_config.h +++ b/src/os/unix/ngx_freebsd_config.h @@ -79,5 +79,7 @@ #define HAVE_LITTLE_ENDIAN 1 +extern char *malloc_options; + #endif /* _NGX_FREEBSD_CONFIG_H_INCLUDED_ */ diff --git a/src/os/unix/ngx_freebsd_init.c b/src/os/unix/ngx_freebsd_init.c index c755a3ec6..205617905 100644 --- a/src/os/unix/ngx_freebsd_init.c +++ b/src/os/unix/ngx_freebsd_init.c @@ -56,6 +56,20 @@ sysctl_t sysctls[] = { }; +void ngx_debug_init() +{ +#if (NGX_DEBUG) + +#if __FreeBSD_version >= 500014 + _malloc_options = "J"; +#else + malloc_options = "J"; +#endif + +#endif +} + + int ngx_os_init(ngx_log_t *log) { int i, version; diff --git a/src/os/unix/ngx_os.h b/src/os/unix/ngx_os.h index 6f0a2e8b3..a106514d1 100644 --- a/src/os/unix/ngx_os.h +++ b/src/os/unix/ngx_os.h @@ -32,6 +32,7 @@ typedef struct { } ngx_os_io_t; +void ngx_debug_init(); int ngx_os_init(ngx_log_t *log); int ngx_daemon(ngx_log_t *log); int ngx_posix_init(ngx_log_t *log); |