[svn r63024] don't close_fds by default

--HG--
branch : trunk
This commit is contained in:
hpk 2009-03-18 09:10:06 +01:00
parent 6f93561002
commit 5803072b96
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@ class InstallableGateway(gateway.Gateway):
class PopenCmdGateway(InstallableGateway): class PopenCmdGateway(InstallableGateway):
def __init__(self, cmd): def __init__(self, cmd):
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, close_fds=True) # on win close_fds=True does not work, not sure it'd needed
#p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, close_fds=True)
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE)
infile, outfile = p.stdin, p.stdout infile, outfile = p.stdin, p.stdout
self._cmd = cmd self._cmd = cmd
io = inputoutput.Popen2IO(infile, outfile) io = inputoutput.Popen2IO(infile, outfile)