]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110395: invalidate open kqueues after fork (GH-110517) (#111745)
authorGregory P. Smith <greg@krypto.org>
Sat, 11 Nov 2023 17:21:52 +0000 (09:21 -0800)
committerGitHub <noreply@github.com>
Sat, 11 Nov 2023 17:21:52 +0000 (09:21 -0800)
commit0f7671cc6963db087cb99354b03999bde5b1d2dd
tree3c5b873323ee731b3e418d199c2f92b050f9e49d
parent3bd8b743305f0d788302df3ff08c2bb7eb0dd297
[3.12] gh-110395: invalidate open kqueues after fork (GH-110517) (#111745)

* [3.12] gh-110395: invalidate open kqueues after fork (GH-110517)

Invalidate open select.kqueue instances after fork as the fd will be invalid in the child.
(cherry picked from commit a6c1c04d4d2339f0094422974ae3f26f8c7c8565)

Co-authored-by: Davide Rizzo <sorcio@gmail.com>
* move assert to after the child dying

this is in `main` via https://github.com/python/cpython/pull/111816/files
Lib/test/test_kqueue.py
Misc/NEWS.d/next/Library/2023-10-08-14-17-06.gh-issue-110395._tdCsV.rst [new file with mode: 0644]
Modules/selectmodule.c