Skip to content

gh-135329: prevent infinite traceback loop on Ctrl-C under external p… #135366

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dura0ok
Copy link
Contributor

@dura0ok dura0ok commented Jun 10, 2025

No description provided.

…rnal programs

When running Python REPL under another program (e.g., strace) and pressing Ctrl-C,
termios raises `EIO` during terminal state restoration, causing infinite exception tracebacks.

This patch catches `termios.error` with `errno.EIO` in `reader.prepare()` to avoid
recursive failure loops when restoring console state.
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.

1 participant