aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--authors.txt1
-rw-r--r--mesonbuild/mesonlib.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/authors.txt b/authors.txt
index 467ab75..e6b7495 100644
--- a/authors.txt
+++ b/authors.txt
@@ -79,3 +79,4 @@ Aaron Plattner
Jon Turney
Wade Berrier
Richard Hughes
+Michael Olbrich
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)