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::
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.