mirror of
https://github.com/kanaka/mal.git
synced 2024-08-17 01:30:26 +03:00
DEBUG re-enable (REMOVE ME).
This commit is contained in:
parent
77489b5906
commit
88869410d7
10
runtest.py
10
runtest.py
@ -104,13 +104,13 @@ class Runner():
|
|||||||
env['TERM'] = 'dumb'
|
env['TERM'] = 'dumb'
|
||||||
env['INPUTRC'] = '/dev/null'
|
env['INPUTRC'] = '/dev/null'
|
||||||
env['PERL_RL'] = 'false'
|
env['PERL_RL'] = 'false'
|
||||||
#print("FDS before: %s" % list_fds())
|
print("FDS before: %s" % list_fds())
|
||||||
if no_pty:
|
if no_pty:
|
||||||
self.p = Popen(args, bufsize=0,
|
self.p = Popen(args, bufsize=0,
|
||||||
stdin=PIPE, stdout=PIPE, stderr=STDOUT,
|
stdin=PIPE, stdout=PIPE, stderr=STDOUT,
|
||||||
preexec_fn=os.setsid,
|
preexec_fn=os.setsid,
|
||||||
env=env)
|
env=env, close_fds=True)
|
||||||
#env=env, close_fds=True)
|
#env=env)
|
||||||
self.stdin = self.p.stdin
|
self.stdin = self.p.stdin
|
||||||
self.stdout = self.p.stdout
|
self.stdout = self.p.stdout
|
||||||
else:
|
else:
|
||||||
@ -125,8 +125,8 @@ class Runner():
|
|||||||
self.p = Popen(args, bufsize=0,
|
self.p = Popen(args, bufsize=0,
|
||||||
stdin=slave, stdout=slave, stderr=STDOUT,
|
stdin=slave, stdout=slave, stderr=STDOUT,
|
||||||
preexec_fn=os.setsid,
|
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
|
# Now close slave so that we will get an exception from
|
||||||
# read when the child exits early
|
# read when the child exits early
|
||||||
# http://stackoverflow.com/questions/11165521
|
# http://stackoverflow.com/questions/11165521
|
||||||
|
Loading…
Reference in New Issue
Block a user