From ca894a24fca452e5aa982e1fc5dc63117c3e3d71 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Tue, 11 Apr 2017 15:17:48 +0200 Subject: 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. --- authors.txt | 1 + mesonbuild/mesonlib.py | 1 + 2 files changed, 2 insertions(+) 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) -- cgit v1.1