mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Revert "icinga2 daemon: reap remaining child processes after reload"
This reverts commit 91265a5b0e134006893576a465c4c84906f1eb82 which isn't needed anymore as Icinga 2 isn't PID 1 anymore.
This commit is contained in:
parent
b06ea2bef7
commit
8c6bfdcf54
@ -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.";
|
<< "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
|
// Old instance shut down, allow the new one to continue working beyond config validation
|
||||||
(void)kill(nextWorker, SIGUSR2);
|
(void)kill(nextWorker, SIGUSR2);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user