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