mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (#1110)
This commit is contained in:
parent
a79f4c2195
commit
66bffd1663
5 changed files with 41 additions and 26 deletions
|
@ -1252,7 +1252,8 @@ class Popen(object):
|
|||
fds_to_keep.add(errpipe_write)
|
||||
self.pid = _posixsubprocess.fork_exec(
|
||||
args, executable_list,
|
||||
close_fds, sorted(fds_to_keep), cwd, env_list,
|
||||
close_fds, tuple(sorted(map(int, fds_to_keep))),
|
||||
cwd, env_list,
|
||||
p2cread, p2cwrite, c2pread, c2pwrite,
|
||||
errread, errwrite,
|
||||
errpipe_read, errpipe_write,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue