From 3715eae5752a7f0447e2871764032c23fbb9e5f6 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sat, 14 Nov 2020 23:32:11 +0100 Subject: [PATCH] Use SIGCHLD to check and not to destroy --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index d8a86bc..b27ec29 100644 --- a/main.py +++ b/main.py @@ -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)