]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-87079: Warn on unintended signal wakeup fd override in `asyncio` (#96807)
authorMichel Hidalgo <michel@ekumenlabs.com>
Sat, 17 Sep 2022 15:07:54 +0000 (12:07 -0300)
committerGitHub <noreply@github.com>
Sat, 17 Sep 2022 15:07:54 +0000 (08:07 -0700)
commit05878106989c6f5b9dd35a6c15a21bee59312827
tree8d58f02a0cc3e14d4983106033a5d97e4cd49bf1
parent2cd70ffb3fe22d778d0bb6ec220fdf67dccc1be6
gh-87079: Warn on unintended signal wakeup fd override in `asyncio` (#96807)

Warn on loop initialization, when setting the wakeup fd disturbs a previously set wakeup fd, and on loop closing, when upon resetting the wakeup fd, we find it has been changed by someone else.
Lib/asyncio/proactor_events.py
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_proactor_events.py
Lib/test/test_asyncio/test_unix_events.py
Misc/NEWS.d/next/Library/2022-09-14-19-15-01.gh-issue-87079.0zYmW5.rst [new file with mode: 0644]