Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3475,7 +3475,11 @@ written in Python, such as a mail server's external command delivery program.
parent. If an error occurs :exc:`OSError` is raised.

Note that some platforms including FreeBSD <= 6.3 and Cygwin have
known issues when using fork() from a thread.
known issues when using ``fork()`` from a thread.

.. versionchanged:: 3.8
Calling ``fork()`` in a subinterpreter is no longer supported
(:exc:`RuntimeError` is raised).

.. warning::

Expand All @@ -3492,6 +3496,10 @@ written in Python, such as a mail server's external command delivery program.
master end of the pseudo-terminal. For a more portable approach, use the
:mod:`pty` module. If an error occurs :exc:`OSError` is raised.

.. versionchanged:: 3.8
Calling ``forkpty()`` in a subinterpreter is no longer supported
(:exc:`RuntimeError` is raised).

.. availability:: some flavors of Unix.


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Document the fact that :exc:`RuntimeError` is raised if :meth:`os.fork` is called in a subinterpreter.