prozorro_sale.tools.executorsΒΆ
# TODO: Convert to signal SIGALRM without additional thread
def parent_watcher():
"""Kills child when a parent dies
"""
while True:
try:
os.kill(ppid, 0)
except OSError:
os.kill(pid, SIGKILL)
time.sleep(1)