Close file descriptors when executing sub-processes

Pass close_fds=True to subprocess.Popen(), as is currently done in
nova.utils.execute().

Fixes bug #1130735

Change-Id: Iec21873d7ef3957847f3b7365fadd613ccf1349d
This commit is contained in:
Bob Kukura 2013-02-20 16:12:24 -05:00
parent 50bfc9a7bd
commit 20e517dd2d

View File

@ -114,7 +114,7 @@ def subprocess_popen(args, stdin=None, stdout=None, stderr=None, shell=False,
env=None):
return subprocess.Popen(args, shell=shell, stdin=stdin, stdout=stdout,
stderr=stderr, preexec_fn=_subprocess_setup,
env=env)
close_fds=True, env=env)
def parse_mappings(mapping_list, unique_values=True):