Changeset - 2caa10e82702
[Not reviewed]
0 2 0
Jan Kaluza - 13 years ago 2012-08-06 15:37:39
hanzz.k@gmail.com
set MALLOC_CHECK_=2 in spectrum2 main process
2 files changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
spectrum/src/main.cpp
Show inline comments
 
@@ -125,6 +125,8 @@ int main(int argc, char **argv)
 
	std::string jid;
 

	
 
	setlocale(LC_ALL, "");
 
	putenv("MALLOC_CHECK_=2");
 
	putenv("MALLOC_PERTURB_=B");
 

	
 
#ifndef WIN32
 
	if (signal(SIGINT, spectrum_sigint_handler) == SIG_ERR) {
spectrum_manager/src/main.cpp
Show inline comments
 
@@ -10,6 +10,7 @@
 
#include <iterator>
 
#include <algorithm>
 
#include <boost/filesystem.hpp>
 
#include <cstdlib>
 
#include "signal.h"
 
#include "sys/wait.h"
 
 
@@ -568,6 +569,9 @@ int main(int argc, char **argv)
 
		return 1;
 
	}
 
 
	putenv("MALLOC_CHECK_=2");
 
	putenv("MALLOC_PERTURB_=B");
 
 
	if (command[0] == "start") {
 
		start_instances(&config);
 
	}
0 comments (0 inline, 0 general)