Repository navigation
Conversation
|
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 |
d40ee99 to
e8b697e
Compare
| del self.old_sigwinch | ||
|
|
||
| try: | ||
| signal.signal(signal.SIGCONT, signal.SIG_DFL) |
There was a problem hiding this comment.
This replaces the caller's SIGCONT handler with SIG_DFL. Can we save the previous handler in prepare() and restore it here?
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
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.