Commit ddd3ca6f authored by Anael Beutot's avatar Anael Beutot Committed by Sébastien Luttringer
Browse files

Launch vnc viewer process in a new process group

So that when we send a SIGINT to the cli, it is not also sent by the terminal
to the child process and thus terminating it.
parent e40cc70a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ class VNCViewer(threading.Thread):
        proc = subprocess.Popen("%s '%s::%s'" % (self.viewer,
                                                 fwd.source_ip,
                                                 fwd.source_port),
                                preexec_fn=os.setpgrp,
                                shell=True, close_fds=True,
                                stdin=onull, stdout=onull, stderr=onull)
        proc.wait()