summaryrefslogtreecommitdiffstats
path: root/Doc/library/subprocess.rst
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2019-08-27 21:36:56 (GMT)
committerGitHub <noreply@github.com>2019-08-27 21:36:56 (GMT)
commit98d90f745d35d5d07bffcb46788b50e05eea56c6 (patch)
treeef3fd981f4f82f06e73b014bc742cf7a5acfebd9 /Doc/library/subprocess.rst
parent3224e1a6bb23b1b322f5b9424b10ab68c9127dcc (diff)
downloadcpython-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.rst7
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