aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-04-11 15:17:48 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-04-13 08:43:54 +0200
commitca894a24fca452e5aa982e1fc5dc63117c3e3d71 (patch)
tree0de125d9668e34d3cae750c9f9afe1b5f4416e9b /mesonbuild/mesonlib.py
parenteaaaee642132d3a568136dc740f74f8aaf4388b0 (diff)
downloadmeson-ca894a24fca452e5aa982e1fc5dc63117c3e3d71.zip
meson-ca894a24fca452e5aa982e1fc5dc63117c3e3d71.tar.gz
meson-ca894a24fca452e5aa982e1fc5dc63117c3e3d71.tar.bz2
Don't close fds when executing programs
Tools that execute meson might open file descriptors for the programs to use. Such as a file descriptor for a logfile.
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index 5377d8e..0a8478b 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -504,6 +504,7 @@ def expand_arguments(args):
def Popen_safe(args, write=None, stderr=subprocess.PIPE, **kwargs):
p = subprocess.Popen(args, universal_newlines=True,
+ close_fds=False,
stdout=subprocess.PIPE,
stderr=stderr, **kwargs)
o, e = p.communicate(write)