bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (#1110)

This commit is contained in:
Serhiy Storchaka 2017-04-19 21:12:46 +03:00 committed by GitHub
parent a79f4c2195
commit 66bffd1663
5 changed files with 41 additions and 26 deletions

View file

@ -386,7 +386,7 @@ def _close_stdin():
def spawnv_passfds(path, args, passfds):
import _posixsubprocess
passfds = sorted(passfds)
passfds = tuple(sorted(map(int, passfds)))
errpipe_read, errpipe_write = os.pipe()
try:
return _posixsubprocess.fork_exec(