mirror of https://github.com/Icinga/icinga2.git
Merge pull request #8512 from Icinga/bugfix/zombie-processes
Revert "icinga2 daemon: reap remaining child processes after reload"
This commit is contained in:
commit
862add5f3f
|
@ -790,17 +790,6 @@ int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::strin
|
|||
<< "Waited for " << Utility::FormatDuration(Utility::GetTime() - start) << " on old process to exit.";
|
||||
}
|
||||
|
||||
for (int info;;) {
|
||||
auto pid (waitpid(-1, &info, WNOHANG));
|
||||
|
||||
if (pid < 1) {
|
||||
break;
|
||||
}
|
||||
|
||||
Log(LogNotice, "cli")
|
||||
<< "Reaped child process " << pid << ".";
|
||||
}
|
||||
|
||||
// Old instance shut down, allow the new one to continue working beyond config validation
|
||||
(void)kill(nextWorker, SIGUSR2);
|
||||
|
||||
|
|
Loading…
Reference in New Issue