1
1
mirror of https://github.com/kanaka/mal.git synced 2024-07-14 17:10:30 +03:00

DEBUG re-enable (REMOVE ME).

This commit is contained in:
Joel Martin 2020-01-23 10:44:19 -06:00
parent 77489b5906
commit 88869410d7

View File

@ -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