DISABLE FDs (REMOVE ME).
authorJoel Martin <github@martintribe.org>
Thu, 23 Jan 2020 16:12:37 +0000 (10:12 -0600)
committerJoel Martin <github@martintribe.org>
Thu, 23 Jan 2020 16:12:37 +0000 (10:12 -0600)
runtest.py

index ae7b574..2889d0c 100755 (executable)
@@ -104,12 +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, close_fds=True)
+                           env=env)
+                           #env=env, close_fds=True)
             self.stdin = self.p.stdin
             self.stdout = self.p.stdout
         else:
@@ -124,7 +125,8 @@ class Runner():
             self.p = Popen(args, bufsize=0,
                            stdin=slave, stdout=slave, stderr=STDOUT,
                            preexec_fn=os.setsid,
-                           env=env, close_fds=True)
+                           env=env)
+                           #env=env, close_fds=True)
             # Now close slave so that we will get an exception from
             # read when the child exits early
             # http://stackoverflow.com/questions/11165521