From: Arnaud Giersch Date: Thu, 8 Mar 2018 21:22:22 +0000 (+0100) Subject: tesh: use start_new_session and see how it behaves on Windows... X-Git-Tag: v3.19~122 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/69d7829d81bfeef39ee9b495dd2f3b5792e41ff6?hp=7b9fe804a453d1b4232acf088d92be25afd5822e tesh: use start_new_session and see how it behaves on Windows... --- 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: