summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2017-05-29 17:03:41 (GMT)
committerGitHub <noreply@github.com>2017-05-29 17:03:41 (GMT)
commit163468a766e16604bdea04a1ab808c0d3e729e5d (patch)
treed9c9bb6da480f4d7e9070e83a010798da5c30a6f /Doc/c-api
parenteba68e2c42e149acecb15bbeb692786e2540157d (diff)
downloadcpython-163468a766e16604bdea04a1ab808c0d3e729e5d.zip
cpython-163468a766e16604bdea04a1ab808c0d3e729e5d.tar.gz
cpython-163468a766e16604bdea04a1ab808c0d3e729e5d.tar.bz2
bpo-16500: Don't use string constants for os.register_at_fork() behavior (#1834)
Instead use keyword only arguments to os.register_at_fork for each of the scenarios. Updates the documentation for clarity.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/sys.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/c-api/sys.rst b/Doc/c-api/sys.rst
index c6777d6..95d9d65 100644
--- a/Doc/c-api/sys.rst
+++ b/Doc/c-api/sys.rst
@@ -49,9 +49,10 @@ Operating System Utilities
.. c:function:: void PyOS_AfterFork_Child()
- Function to update some internal state after a process fork. This
- should be called from the child process after calling :c:func:`fork`
- or any similar function that clones the current process.
+ Function to update internal interpreter state after a process fork.
+ This must be called from the child process after calling :c:func:`fork`,
+ or any similar function that clones the current process, if there is
+ any chance the process will call back into the Python interpreter.
Only available on systems where :c:func:`fork` is defined.
.. versionadded:: 3.7