From e483ed282597e04342fb7e18afd63d8647822921 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 3 Mar 2016 22:36:37 +0000 Subject: [PATCH] [libFuzzer] when interrupted, call _Exit() instead of exit() llvm-svn: 262667 --- llvm/lib/Fuzzer/FuzzerLoop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Fuzzer/FuzzerLoop.cpp b/llvm/lib/Fuzzer/FuzzerLoop.cpp index e182da4..0438f41 100644 --- a/llvm/lib/Fuzzer/FuzzerLoop.cpp +++ b/llvm/lib/Fuzzer/FuzzerLoop.cpp @@ -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() { -- 2.7.4