-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-81057: Move Signal-Related Globals to _PyRuntimeState #100085
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
ericsnowcurrently
merged 30 commits into
python:main
from
ericsnowcurrently:consolidate-signal-globals
Dec 12, 2022
+82
−69
Merged
Changes from 27 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
6dcffac
Add struct _signals_runtime_state.
ericsnowcurrently 5e49464
Move signalmodule.c:Handlers to _PyRuntimeState.
ericsnowcurrently 07332af
Move signalmodule.c:wakeup to _PyRuntimeState.
ericsnowcurrently 1b5ec60
Move signalmodule.c:is_tripped to _PyRuntimeState.
ericsnowcurrently 280f6f4
Move signalmodule.c:signal_global_state to _PyRuntimeState.
ericsnowcurrently fd6a2de
Fix includes (e.g. for Windows) in pycore_signal.h.
ericsnowcurrently 410190b
Drop the socketmodule.h include.
ericsnowcurrently 1fc3dce
Fix the include for SOCKET on Windows.
ericsnowcurrently d4f05e4
Fix formatting.
ericsnowcurrently 1ddece1
Fix order of includes on WINDOWS.
ericsnowcurrently 9592a8b
Fix includes on Windows.
ericsnowcurrently cc43787
Fix INVALID_FD on Windows.
ericsnowcurrently 0164014
Revert "Fix includes on Windows."
ericsnowcurrently 1d8d9e2
Include the headers conditionally.
ericsnowcurrently 555f727
Fail instead of falling back to includes.
ericsnowcurrently 57dc4a8
Reach for a sweet spot.
ericsnowcurrently 08799ad
Pull in HANDLE.
ericsnowcurrently 3bad4d6
Drop an unnecessary ifdef.
ericsnowcurrently 3624161
Force the ifdef checks for the actual definition of _PyRuntime.
ericsnowcurrently 2191c97
Drop the ifdef checks.
ericsnowcurrently 76794fb
Change members/macros to fail (or warn) when used without the proper …
ericsnowcurrently c9aee62
Make sure the Windows includes happen early enough.
ericsnowcurrently ca33ad7
Move the includes up.
ericsnowcurrently 7f35360
Check for _WINSOCKAPI_ instead of SOCKET.
ericsnowcurrently 3d23778
Define a HANDLE macro where needed.
ericsnowcurrently 73e3bc1
Use void* for the "fd" field.
ericsnowcurrently 4195e62
Use void* for the "sigint_event" field.
ericsnowcurrently 36cda7b
Use an int for wakeup.fd, instead of SOCKET.
ericsnowcurrently 2a3bdf1
Drop the explicit includes.
ericsnowcurrently 38596a0
Fix a warning.
ericsnowcurrently 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
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
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
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
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
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
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
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.