X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7b9fe804a453d1b4232acf088d92be25afd5822e..69d7829d81bfeef39ee9b495dd2f3b5792e41ff6:/tools/tesh/tesh.py 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: