mirror of
https://github.com/gperftools/gperftools
synced 2025-02-17 20:56:53 +00:00
issue-405: backed out original commit made in revision 147 due to the fact that it didn't work as intended
git-svn-id: http://gperftools.googlecode.com/svn/trunk@161 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
This commit is contained in:
parent
3e296c28c3
commit
57c48e9b5f
@ -223,10 +223,6 @@ DEFINE_int32(heap_check_delay_seconds, 0,
|
||||
" its checks. Report any such issues to the heap-checker"
|
||||
" maintainer(s).");
|
||||
|
||||
DEFINE_int32(heap_check_error_exit_code,
|
||||
EnvToInt("HEAP_CHECK_ERROR_EXIT_CODE", 1),
|
||||
"Exit code to return if any leaks were detected.");
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
DEFINE_string(heap_profile_pprof,
|
||||
@ -2161,8 +2157,7 @@ bool HeapLeakChecker::DoMainHeapCheck() {
|
||||
}
|
||||
RAW_LOG(ERROR, "Exiting with error code (instead of crashing) "
|
||||
"because of whole-program memory leaks");
|
||||
// We don't want to call atexit() routines!
|
||||
_exit(FLAGS_heap_check_error_exit_code);
|
||||
_exit(1); // we don't want to call atexit() routines!
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user