From 62905a1312a30e710d0ab07b376f6c201f41303c Mon Sep 17 00:00:00 2001 From: hpk Date: Tue, 24 Mar 2009 23:38:43 +0100 Subject: [PATCH] [svn r63301] don't open the anyway unused stdin, this can (at last on python 2.4 on Mac) leave open pipes in the process --HG-- branch : trunk --- py/process/cmdexec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/process/cmdexec.py b/py/process/cmdexec.py index a5d03cf5d..5c465d312 100644 --- a/py/process/cmdexec.py +++ b/py/process/cmdexec.py @@ -32,7 +32,7 @@ def posix_exec_cmd(cmd): import errno #print "execing", cmd - child = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE, + child = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE, close_fds=True) stdin, stdout, stderr = child.stdin, child.stdout, child.stderr