Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment