summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-04-19 18:12:46 (GMT)
committerGitHub <noreply@github.com>2017-04-19 18:12:46 (GMT)
commit66bffd1663489d080349debbf1b472d432351038 (patch)
treebdbec28fed6a4e3ab35d620aaafb5193bab12557 /Lib/multiprocessing
parenta79f4c219531c05fc8f670c1e4bbf12c081935d3 (diff)
downloadcpython-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.py2
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(