Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-72353: WindowsConsoleIO misbehavior when Ctrl+C is ignored#17976

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ZackerySpytz wants to merge2 commits intopython:main
base:main
Choose a base branch
Loading
fromZackerySpytz:bpo-28166-WindowsConsoleIO-Ctrl-C

Conversation

ZackerySpytz
Copy link
Contributor

@ZackerySpytzZackerySpytz commentedJan 13, 2020
edited by bedevere-appbot
Loading

Continue to read if SIGINT is ignored or the handler doesn't raise
an exception.

Co-Authored-By: Valeriya Sinevichvaleriya.sinevich@phystech.edu

https://bugs.python.org/issue28166

Continue to read if SIGINT is ignored or the handler doesn't raisean exception.Co-Authored-By: Valeriya Sinevich <valeriya.sinevich@phystech.edu>
@erlend-aaslanderlend-aasland changed the titlebpo-28166: WindowsConsoleIO misbehavior when Ctrl+C is ignoredgh-72353: WindowsConsoleIO misbehavior when Ctrl+C is ignoredJan 5, 2024
if (WaitForSingleObjectEx(hInterruptEvent, 100, FALSE)
==WAIT_OBJECT_0) {
DWORD state =WaitForSingleObjectEx(hInterruptEvent, 100, FALSE);
if (state == WAIT_OBJECT_0 || state==WAIT_TIMEOUT) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Considering every other possible result is a hard error (which we're currently ignoring... whoops), I don't think this is the right condition.

Probably in theWAIT_TIMEOUT case we want to justcontinue and not callPyErr_CheckSignals? We certainly shouldn't reset the event, because we haven't been given it

@serhiy-storchakaserhiy-storchaka added needs backport to 3.13bugs and security fixes and removed needs backport to 3.11only security fixes labelsMay 9, 2024
@hugovkhugovk removed the needs backport to 3.12only security fixes labelApr 10, 2025
@serhiy-storchakaserhiy-storchaka added the needs backport to 3.14bugs and security fixes labelMay 8, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@zoobazoobazooba left review comments

@pablogsalpablogsalAwaiting requested review from pablogsalpablogsal is a code owner

@lysnikolaoulysnikolaouAwaiting requested review from lysnikolaoulysnikolaou is a code owner

@eryksuneryksunAwaiting requested review from eryksun

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

7 participants
@ZackerySpytz@zooba@hugovk@serhiy-storchaka@the-knights-who-say-ni@ezio-melotti@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp