Commit 3f80f0a0 authored by Anael Beutot's avatar Anael Beutot
Browse files

Fixed remote execution on host.

When doing remote execution, it was sometimes failing with the following
exception: OSError: [Errno 10] No child processes.
The problem is when using libev default loop, the latest register a handler for
SIGCHLD, it causes a problem when Popen.communicate() tried to do a wait_pid,
the syscall is skipped because of the signal. Then when wait_pid is called
again, it failed because the process don't exist anymore.
parent 58f38957
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ class RPCStartHandler(Thread):

class MainLoop(object):
    def __init__(self, config_path):
        self.evloop = pyev.default_loop(debug=True)
        self.evloop = pyev.Loop(debug=True)
        self.config_path = config_path

        # set signal watchers