Use SIGCHLD to check and not to destroy

This commit is contained in:
Benedikt Ziemons 2020-11-14 23:32:11 +01:00
parent a9b55774ae
commit 3715eae575
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -112,10 +112,10 @@ class PodKeeper:
def main(network, identifier):
keeper = PodKeeper(network, identifier)
signal(SIGCHLD, keeper.destroy)
signal(SIGINT, keeper.destroy)
signal(SIGTERM, keeper.destroy)
signal(SIGHUP, keeper.reload)
signal(SIGCHLD, keeper.check)
signal(SIGALRM, keeper.check)
setitimer(ITIMER_REAL, 4.0, 10.0)