mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
bpo-37951: Lift subprocess's fork() restriction (GH-15544)
This commit is contained in:
parent
3224e1a6bb
commit
98d90f745d
4 changed files with 19 additions and 2 deletions
|
|
@ -483,6 +483,13 @@ functions.
|
|||
The *start_new_session* parameter can take the place of a previously
|
||||
common use of *preexec_fn* to call os.setsid() in the child.
|
||||
|
||||
.. versionchanged:: 3.8
|
||||
|
||||
The *preexec_fn* parameter is no longer supported in subinterpreters.
|
||||
The use of the parameter in a subinterpreter raises
|
||||
:exc:`RuntimeError`. The new restriction may affect applications that
|
||||
are deployed in mod_wsgi, uWSGI, and other embedded environments.
|
||||
|
||||
If *close_fds* is true, all file descriptors except :const:`0`, :const:`1` and
|
||||
:const:`2` will be closed before the child process is executed. Otherwise
|
||||
when *close_fds* is false, file descriptors obey their inheritable flag
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue