diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-04-11 15:17:48 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-04-13 08:43:54 +0200 |
commit | ca894a24fca452e5aa982e1fc5dc63117c3e3d71 (patch) | |
tree | 0de125d9668e34d3cae750c9f9afe1b5f4416e9b /mesonbuild/mesonlib.py | |
parent | eaaaee642132d3a568136dc740f74f8aaf4388b0 (diff) | |
download | meson-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.py | 1 |
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) |