]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-105912: document gotcha with using os.fork on macOS (GH-112871) (#113133)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 16 Dec 2023 09:12:10 +0000 (10:12 +0100)
committerGitHub <noreply@github.com>
Sat, 16 Dec 2023 09:12:10 +0000 (10:12 +0100)
commit3bfe2b6c2a857f987e57ae8ab7097e113f590621
tree24465556ef9e9258ffd3412620c1d6d10f44c39d
parent37712aced6811d5cc6be93003e057dc4ee1dd869
[3.12] gh-105912: document gotcha with using os.fork on macOS (GH-112871) (#113133)

gh-105912: document gotcha with using os.fork on macOS (GH-112871)

* gh-105912: document gotcha with using os.fork on macOS

Using ``fork(2)`` on macOS when also using higher-level
system APIs in the parent proces can crash on macOS because
those system APIs are not written to handle this usage
pattern.

There's nothing we can do about this other than documenting
the problem.

(cherry picked from commit 22511f77c2818a138a252e6ddae89725d082f8b0)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Doc/library/os.rst
Doc/library/pty.rst
Doc/library/urllib.request.rst