[llvm] r262667 - [libFuzzer] when interrupted, call _Exit() instead of exit()

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 14:36:38 PST 2016


Author: kcc
Date: Thu Mar  3 16:36:37 2016
New Revision: 262667

URL: http://llvm.org/viewvc/llvm-project?rev=262667&view=rev
Log:
[libFuzzer] when interrupted, call _Exit() instead of exit()

Modified:
    llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp

Modified: llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp?rev=262667&r1=262666&r2=262667&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp Thu Mar  3 16:36:37 2016
@@ -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() {




More information about the llvm-commits mailing list