[libFuzzer] when interrupted, call _Exit() instead of exit()
authorKostya Serebryany <kcc@google.com>
Thu, 3 Mar 2016 22:36:37 +0000 (22:36 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 3 Mar 2016 22:36:37 +0000 (22:36 +0000)
llvm-svn: 262667

llvm/lib/Fuzzer/FuzzerLoop.cpp

index e182da4..0438f41 100644 (file)
@@ -130,7 +130,7 @@ void Fuzzer::CrashCallback() {
 void Fuzzer::InterruptCallback() {
   Printf("==%d== libFuzzer: run interrupted; exiting\n", GetPid());
   PrintFinalStats();
-  exit(0);
+  _Exit(0);  // Stop right now, don't perform any at-exit actions.
 }
 
 void Fuzzer::AlarmCallback() {