mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-38417: Add umask support to subprocess (GH-16726)
On POSIX systems, allow the umask to be set in the child process before we exec.
This commit is contained in:
parent
8177404d52
commit
f3751efb5c
7 changed files with 57 additions and 19 deletions
|
@ -429,7 +429,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, None)
|
||||
False, False, None, None, None, -1, None)
|
||||
finally:
|
||||
os.close(errpipe_read)
|
||||
os.close(errpipe_write)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue