Use SIGCHLD to check and not to destroy
This commit is contained in:
parent
a9b55774ae
commit
3715eae575
2
main.py
2
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue