DEBUG re-enable (REMOVE ME).
authorJoel Martin <github@martintribe.org>
Thu, 23 Jan 2020 16:44:19 +0000 (10:44 -0600)
committerJoel Martin <github@martintribe.org>
Thu, 23 Jan 2020 16:44:19 +0000 (10:44 -0600)
runtest.py

index 2889d0c..bc7fa80 100755 (executable)
@@ -104,13 +104,13 @@ class Runner():
         env['TERM'] = 'dumb'
         env['INPUTRC'] = '/dev/null'
         env['PERL_RL'] = 'false'
-        #print("FDS before: %s" % list_fds())
+        print("FDS before: %s" % list_fds())
         if no_pty:
             self.p = Popen(args, bufsize=0,
                            stdin=PIPE, stdout=PIPE, stderr=STDOUT,
                            preexec_fn=os.setsid,
-                           env=env)
-                           #env=env, close_fds=True)
+                           env=env, close_fds=True)
+                           #env=env)
             self.stdin = self.p.stdin
             self.stdout = self.p.stdout
         else:
@@ -125,8 +125,8 @@ class Runner():
             self.p = Popen(args, bufsize=0,
                            stdin=slave, stdout=slave, stderr=STDOUT,
                            preexec_fn=os.setsid,
-                           env=env)
-                           #env=env, close_fds=True)
+                           env=env, close_fds=True)
+                           #env=env)
             # Now close slave so that we will get an exception from
             # read when the child exits early
             # http://stackoverflow.com/questions/11165521