mirror of
https://github.com/python/cpython
synced 2026-09-28 01:13:17 +03:00
gh-113119 fix environment handling in subprocess.Popen when posix_spawn is used (#113120)
* Allow posix_spawn to inherit environment form parent environ variable. With this change, posix_spawn call can behave similarly to execv with regards to environments when used in subprocess functions.
This commit is contained in:
parent
cde1335485
commit
48c907a15c
5 changed files with 21 additions and 10 deletions
|
|
@ -289,6 +289,10 @@ os
|
|||
``False`` on Windows.
|
||||
(Contributed by Serhiy Storchaka in :gh:`59616`)
|
||||
|
||||
* :func:`os.posix_spawn` now accepts ``env=None``, which makes the newly spawned
|
||||
process use the current process environment.
|
||||
(Contributed by Jakub Kulik in :gh:`113119`.)
|
||||
|
||||
pathlib
|
||||
-------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue