aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-05-02 09:59:47 +0000
committerMartin Willi <martin@strongswan.org>2007-05-02 09:59:47 +0000
commit3d63b7639e4332080469aee8935ee59f5fa86e0f (patch)
treeea1e5a0e6f53bdb3fae0ff1ba43378d96201c526
parent0ccb275a93488b46434572e0192d0d7bee2b5db3 (diff)
downloadstrongswan-3d63b7639e4332080469aee8935ee59f5fa86e0f.tar.bz2
strongswan-3d63b7639e4332080469aee8935ee59f5fa86e0f.tar.xz
setting MALLOC_CHECK_=0 for charon to not use glibc's malloc checker
-rw-r--r--src/starter/invokecharon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/starter/invokecharon.c b/src/starter/invokecharon.c
index 7e93b9ac6..422e4788b 100644
--- a/src/starter/invokecharon.c
+++ b/src/starter/invokecharon.c
@@ -207,6 +207,8 @@ starter_start_charon (starter_config_t *cfg, bool debug)
/* child */
setsid();
sigprocmask(SIG_SETMASK, 0, NULL);
+ /* disable glibc's malloc checker, conflicts with leak detective */
+ setenv("MALLOC_CHECK_", "0", 1);
execv(arg[0], arg);
plog("can't execv(%s,...): %s", arg[0], strerror(errno));
exit(1);