summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerDriver.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-05-12 01:43:20 +0000
committerKostya Serebryany <kcc@google.com>2015-05-12 01:43:20 +0000
commitcd7629caecd158a8e6752c5cf16a1459603fac8d (patch)
treecbad8cce731a35ac186b09a92ba26f660901c587 /llvm/lib/Fuzzer/FuzzerDriver.cpp
parent5c79fda9124f94d33daa2d2a8559afe161e450ed (diff)
downloadbcm5719-llvm-cd7629caecd158a8e6752c5cf16a1459603fac8d.tar.gz
bcm5719-llvm-cd7629caecd158a8e6752c5cf16a1459603fac8d.zip
[lib/Fuzzer] detach the pulse thread instad of joining it
llvm-svn: 237082
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerDriver.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerDriver.cpp b/llvm/lib/Fuzzer/FuzzerDriver.cpp
index 724714e6b89..93a667a0bb2 100644
--- a/llvm/lib/Fuzzer/FuzzerDriver.cpp
+++ b/llvm/lib/Fuzzer/FuzzerDriver.cpp
@@ -165,11 +165,11 @@ static int RunInMultipleProcesses(int argc, char **argv, int NumWorkers,
}
std::vector<std::thread> V;
std::thread Pulse(PulseThread);
+ Pulse.detach();
for (int i = 0; i < NumWorkers; i++)
V.push_back(std::thread(WorkerThread, Cmd, &Counter, NumJobs, &HasErrors));
for (auto &T : V)
T.join();
- Pulse.join();
return HasErrors ? 1 : 0;
}
OpenPOWER on IntegriCloud