Skip to content

Commit 9dc3044

Browse files
cleanup: Remove wait_for since it is deprecated (#371)
1 parent c6a13d5 commit 9dc3044

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

indexer/Driver.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <memory>
1313
#include <string>
1414
#include <string_view>
15+
#include <thread>
1516
#include <variant>
1617
#include <vector>
1718

@@ -613,7 +614,12 @@ class Scheduler final {
613614
auto &worker = this->workers[workerId];
614615
BOOST_TRY {
615616
if (worker.processHandle.running()) {
616-
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+
}
617623
}
618624
}
619625
BOOST_CATCH(boost::process::process_error & error) {

0 commit comments

Comments
 (0)