[llvm] r249231 - [libFuzzer] trying to fix at-exit hang

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 3 00:02:05 PDT 2015


Author: kcc
Date: Sat Oct  3 02:02:05 2015
New Revision: 249231

URL: http://llvm.org/viewvc/llvm-project?rev=249231&view=rev
Log:
[libFuzzer] trying to fix at-exit hang

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

Modified: llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp?rev=249231&r1=249230&r2=249231&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerDriver.cpp Sat Oct  3 02:02:05 2015
@@ -318,7 +318,7 @@ int FuzzerDriver(const std::vector<std::
     Printf("Done %d runs in %zd second(s)\n", F.getTotalNumberOfRuns(),
            F.secondsSinceProcessStartUp());
 
-  return 0;
+  exit(0);  // Don't let F destroy itself.
 }
 
 }  // namespace fuzzer




More information about the llvm-commits mailing list