Don't close fds when executing programs

This is basically the same as #1612 just for new new Popen_safe_legacy().
pull/5346/head
Michael Olbrich 6 years ago committed by Jussi Pakkanen
parent ccc4ce28cc
commit a15a8b7e24
  1. 2
      mesonbuild/mesonlib.py

@ -968,7 +968,7 @@ def Popen_safe(args, write=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
return p, o, e
def Popen_safe_legacy(args, write=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs):
p = subprocess.Popen(args, universal_newlines=False,
p = subprocess.Popen(args, universal_newlines=False, close_fds=False,
stdout=stdout, stderr=stderr, **kwargs)
if write is not None:
write = write.encode('utf-8')

Loading…
Cancel
Save