[PATCH 11/17] Add close_fds to the Popen call.
David Shea
dshea at redhat.com
Sun Sep 21 19:37:03 UTC 2014
I don't think we ever want anything above stderr to make it to a child
process.
---
pyanaconda/iutil.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
index 1e5fed9..999b4ec 100644
--- a/pyanaconda/iutil.py
+++ b/pyanaconda/iutil.py
@@ -160,6 +160,7 @@ def startProgram(argv, root='/', stdin=None, stdout=subprocess.PIPE, stderr=subp
stdin=stdin,
stdout=stdout,
stderr=stderr,
+ close_fds=True,
preexec_fn=preexec, cwd=root, env=env, **kwargs)
def _run_program(argv, root='/', stdin=None, stdout=None, env_prune=None, log_output=True, binary_output=False):
--
1.9.3
More information about the anaconda-patches
mailing list