Skip to content

gh-161254: Defer registering SIGCONT handler until UnixConsole is actually used - #161255

Open
meshulam wants to merge 3 commits into
python:mainfrom
meshulam:pyrepl-console-crash
Open

meshulam wants to merge 3 commits into
python:mainfrom
meshulam:pyrepl-console-crash

Conversation

@meshulam

@meshulam meshulam commented Nov 3, 2026

Copy link
Copy Markdown

Fixes an issue where the default sys.__interactivehook__() registers a signal handler for a pyrepl UnixConsole that may never actually be used, causing a crash when the SIGCONT signal is received.

This is the most visible part of gh-161254 but does not resolve the underlying issue of pyrepl and code.interact() not playing well together.

@python-cla-bot

python-cla-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

bedevere-app Bot commented Nov 3, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

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