Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.10] gh-94732: Fix KeyboardInterrupt race in asyncio run_forever() (GH-97765) #97793

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 3, 2022

Ensure that the event loop's _thread_id attribute and the asyncgen hooks set by sys.set_asyncgen_hooks() are always restored no matter where a KeyboardInterrupt exception is raised.
(cherry picked from commit 3a49dbb)

Co-authored-by: hetmankp 728670+hetmankp@users.noreply.github.com

…ythonGH-97765)

Ensure that the event loop's `_thread_id` attribute and the asyncgen hooks set by `sys.set_asyncgen_hooks()` are always restored no matter where a KeyboardInterrupt exception is raised.
(cherry picked from commit 3a49dbb)

Co-authored-by: hetmankp <728670+hetmankp@users.noreply.github.com>
@miss-islington
Copy link
Contributor Author

Status check is done, and it's a success ✅.

@miss-islington miss-islington merged commit a7e2811 into python:3.10 Oct 3, 2022
@miss-islington miss-islington deleted the backport-3a49dbb-3.10 branch October 3, 2022 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants