setting MALLOC_CHECK_=0 for charon to not use glibc's malloc checker
This commit is contained in:
@@ -207,6 +207,8 @@ starter_start_charon (starter_config_t *cfg, bool debug)
|
|||||||
/* child */
|
/* child */
|
||||||
setsid();
|
setsid();
|
||||||
sigprocmask(SIG_SETMASK, 0, NULL);
|
sigprocmask(SIG_SETMASK, 0, NULL);
|
||||||
|
/* disable glibc's malloc checker, conflicts with leak detective */
|
||||||
|
setenv("MALLOC_CHECK_", "0", 1);
|
||||||
execv(arg[0], arg);
|
execv(arg[0], arg);
|
||||||
plog("can't execv(%s,...): %s", arg[0], strerror(errno));
|
plog("can't execv(%s,...): %s", arg[0], strerror(errno));
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user