summaryrefslogtreecommitdiffstats
path: root/sysdep/unix/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/unix/main.c')
-rw-r--r--sysdep/unix/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c
index e5e9934..45940fb 100644
--- a/sysdep/unix/main.c
+++ b/sysdep/unix/main.c
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/signal.h>
@@ -186,6 +187,11 @@ parse_args(int argc, char **argv)
int
main(int argc, char **argv)
{
+#ifdef HAVE_LIBDMALLOC
+ if (!getenv("DMALLOC_OPTIONS"))
+ dmalloc_debug(0x2f03d00);
+#endif
+
log_init_debug(NULL);
parse_args(argc, argv);