]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-105912: document gotcha with using os.fork on macOS (GH-112871) (#113135)
authorRonald Oussoren <ronaldoussoren@mac.com>
Sat, 16 Dec 2023 09:13:01 +0000 (10:13 +0100)
committerGitHub <noreply@github.com>
Sat, 16 Dec 2023 09:13:01 +0000 (10:13 +0100)
commit11401e2c7967da01ac3779b2a698e7f348b7c62d
tree84e11b5de4ef7f2d196a70038734a50f4066c03c
parent2be7a7296f5b31a4f674fa98ff8338690a093d91
[3.11] gh-105912: document gotcha with using os.fork on macOS (GH-112871) (#113135)

* 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: Carol Willing <carolcode@willingconsulting.com>
Doc/library/os.rst
Doc/library/pty.rst
Doc/library/urllib.request.rst