From 69d7829d81bfeef39ee9b495dd2f3b5792e41ff6 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 8 Mar 2018 22:22:22 +0100 Subject: [PATCH] tesh: use start_new_session and see how it behaves on Windows... --- tools/tesh/tesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tesh/tesh.py b/tools/tesh/tesh.py index 37894175c7..a37449ee68 100755 --- a/tools/tesh/tesh.py +++ b/tools/tesh/tesh.py @@ -314,7 +314,7 @@ class Cmd(object): global pgtokill try: - proc = subprocess.Popen(args, bufsize=1, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, preexec_fn=os.setsid) + proc = subprocess.Popen(args, bufsize=1, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, start_new_session=True) try: pgtokill = os.getpgid(proc.pid) except OSError: -- 2.20.1