[PATCH 04/22] Add close_fds to the Popen call.

David Shea dshea at redhat.com
Wed Jun 3 16:03:28 UTC 2015


I don't think we ever want anything above stderr to make it to a child
process.

(cherry picked from commit 42568e631dc1e04996853ffc1944d1143ee2793c)

Related: rhbz#1188287
---
 pyanaconda/iutil.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
index deaebfc..fcba391 100644
--- a/pyanaconda/iutil.py
+++ b/pyanaconda/iutil.py
@@ -159,6 +159,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):
-- 
2.1.0



More information about the anaconda-patches mailing list