We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6a13d5 commit 9dc3044Copy full SHA for 9dc3044
indexer/Driver.cc
@@ -12,6 +12,7 @@
12
#include <memory>
13
#include <string>
14
#include <string_view>
15
+#include <thread>
16
#include <variant>
17
#include <vector>
18
@@ -613,7 +614,12 @@ class Scheduler final {
613
614
auto &worker = this->workers[workerId];
615
BOOST_TRY {
616
if (worker.processHandle.running()) {
- worker.processHandle.wait_for(std::chrono::milliseconds(100));
617
+ std::this_thread::sleep_for(std::chrono::milliseconds(100));
618
+ if (worker.processHandle.running()) {
619
+ spdlog::info("expected worker process to have exited but it is "
620
+ "still running, pid: {}",
621
+ worker.processHandle.id());
622
+ }
623
}
624
625
BOOST_CATCH(boost::process::process_error & error) {
0 commit comments