Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tesh: use start_new_session and see how it behaves on Windows...
[simgrid.git] / tools / tesh / tesh.py
index 3789417..a37449e 100755 (executable)
@@ -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: