diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-04-19 18:12:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 18:12:46 (GMT) |
commit | 66bffd1663489d080349debbf1b472d432351038 (patch) | |
tree | bdbec28fed6a4e3ab35d620aaafb5193bab12557 /Lib/multiprocessing | |
parent | a79f4c219531c05fc8f670c1e4bbf12c081935d3 (diff) | |
download | cpython-66bffd1663489d080349debbf1b472d432351038.zip cpython-66bffd1663489d080349debbf1b472d432351038.tar.gz cpython-66bffd1663489d080349debbf1b472d432351038.tar.bz2 |
bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (#1110)
Diffstat (limited to 'Lib/multiprocessing')
-rw-r--r-- | Lib/multiprocessing/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/multiprocessing/util.py b/Lib/multiprocessing/util.py index 1a2c0db..0ce274c 100644 --- a/Lib/multiprocessing/util.py +++ b/Lib/multiprocessing/util.py @@ -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( |