[lib/Fuzzer] detach the pulse thread instad of joining it
[oota-llvm.git] / lib / Fuzzer / FuzzerDriver.cpp
index 724714e6b8961f3e3b957b9626bceeae8efb9d38..93a667a0bb269b3d7b6b209ee56bc239c3c128c6 100644 (file)
@@ -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;
 }