-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-132975: Improve Remote PDB interrupt handling #133223
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
Merged
pablogsal
merged 20 commits into
python:main
from
godlygeek:improve_remote_pdb_interrupt_handling
May 5, 2025
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
8d89bf4
Only allow KeyboardInterrupt at specific times
godlygeek f65f99f
Have _PdbClient work with the socket directly
godlygeek ec9d3bf
Allow interrupting socket reads on Windows
godlygeek ed664b8
Use a SIGINT to interrupt the remote on Unix
godlygeek aafa48c
Handle a ValueError for operations on a closed file
godlygeek 42e7cec
Use a single complex signal handler for the PDB client
godlygeek 02da647
Add a news entry
godlygeek 5abd63a
Update the comment to explain why we catch two exception types
godlygeek c9c5bf2
Swap signal_read/signal_write resetting to the outer finally block
godlygeek 8fa88a5
Use os.kill() on every platform but Windows
godlygeek 4c0b431
Use `ExitStack` to reduce nesting in `attach`
godlygeek 5993e06
Use a thread to manage interrupts on Windows
godlygeek dd7c9b1
Use the signal handling thread approach on all platforms
godlygeek e2391b0
Make all _connect arguments keyword-only
godlygeek edd7517
Merge remote-tracking branch 'upstream/main' into improve_remote_pdb_…
godlygeek 14aa8e7
One line for contextlib imports
godlygeek b26ed5c
Add some tests for handling SIGINT in the PDB client
godlygeek a860087
Switch back to os.kill() on Unix
godlygeek e1bb1d3
Wrap input() calls in a function
godlygeek 2a7807c
Merge branch 'main' into improve_remote_pdb_interrupt_handling
pablogsal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.