From 77489b59061b18166588eb70e7908467285e619d Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Thu, 23 Jan 2020 10:12:37 -0600 Subject: [PATCH] DISABLE FDs (REMOVE ME). --- runtest.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/runtest.py b/runtest.py index ae7b5742..2889d0ca 100755 --- a/runtest.py +++ b/runtest.py @@ -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