Fix errounous log "Child process with PID 0 died"

- 0 pid is appended if parent process dies; ignore that
pull/179/head
Peter Repukat 2 years ago
parent 084c282ce2
commit 4f1109d77a

@ -77,6 +77,9 @@ void AppLauncher::update()
}
if (Settings::launch.waitForChildProcs) {
std::erase_if(pids_, [](auto pid) {
if (pid == 0) {
return true;
}
const auto running = IsProcessRunning(pid);
if (!running)
spdlog::trace("Child process with PID \"{}\" died", pid);

Loading…
Cancel
Save