mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 14:29:16 +08:00
littlecheck: pass close_fds to subprocess.Popen
Closes #6435. close_fds=True is actually the default in Python 2.7 and 3.2, but not in ancient (but still in production in Red Hat Enterprise Linux 6) Python 2.6. Enable it there as well.
This commit is contained in:
parent
625db1d3f6
commit
5911fc94b8
|
@ -250,7 +250,12 @@ class TestRun(object):
|
|||
if self.config.verbose:
|
||||
print(self.subbed_command)
|
||||
proc = subprocess.Popen(
|
||||
self.subbed_command, stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=True
|
||||
self.subbed_command,
|
||||
stdin=PIPE,
|
||||
stdout=PIPE,
|
||||
stderr=PIPE,
|
||||
shell=True,
|
||||
close_fds=True, # For Python 2.6 as shipped on RHEL 6
|
||||
)
|
||||
stdout, stderr = proc.communicate()
|
||||
outlines = [
|
||||
|
|
Loading…
Reference in New Issue
Block a user