diff options
author | Christian Heimes <christian@python.org> | 2019-08-27 21:36:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-27 21:36:56 (GMT) |
commit | 98d90f745d35d5d07bffcb46788b50e05eea56c6 (patch) | |
tree | ef3fd981f4f82f06e73b014bc742cf7a5acfebd9 /Doc/library/subprocess.rst | |
parent | 3224e1a6bb23b1b322f5b9424b10ab68c9127dcc (diff) | |
download | cpython-98d90f745d35d5d07bffcb46788b50e05eea56c6.zip cpython-98d90f745d35d5d07bffcb46788b50e05eea56c6.tar.gz cpython-98d90f745d35d5d07bffcb46788b50e05eea56c6.tar.bz2 |
bpo-37951: Lift subprocess's fork() restriction (GH-15544)
Diffstat (limited to 'Doc/library/subprocess.rst')
-rw-r--r-- | Doc/library/subprocess.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 7e1e3f9..167ed9a 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -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 |