Fix multiprocessing's _posixsubprocess.fork_exec() call.

This commit is contained in:
Gregory P. Smith 2020-12-24 21:03:18 -08:00
parent 5f5d8001ef
commit 010ae9a1e1
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ def spawnv_passfds(path, args, passfds):
return _posixsubprocess.fork_exec(
args, [os.fsencode(path)], True, passfds, None, None,
-1, -1, -1, -1, -1, -1, errpipe_read, errpipe_write,
False, False, None, None, None, -1, None)
False, False, -1, None, None, None, -1, None)
finally:
os.close(errpipe_read)
os.close(errpipe_write)