gh-81057: Move Signal-Related Globals to _PyRuntimeState#100085
Merged
ericsnowcurrently merged 30 commits intopython:mainfrom Dec 12, 2022
Merged
gh-81057: Move Signal-Related Globals to _PyRuntimeState#100085ericsnowcurrently merged 30 commits intopython:mainfrom
ericsnowcurrently merged 30 commits intopython:mainfrom
Conversation
✅ Deploy Preview for python-cpython-preview canceled.
|
b8ae626 to
3b416b1
Compare
5cd67d8 to
c1ac129
Compare
Include/internal/pycore_signal.h
Outdated
Comment on lines
15
to
24
| #ifdef MS_WINDOWS | ||
| # ifdef PYCORE_SIGNAL_WITH_PRE_INCLUDES | ||
| # ifndef SOCKET | ||
| # error "<winsock2.h> must be included before this header" | ||
| # endif | ||
| # ifndef HANDLE | ||
| # error "<windows.h> must be included before this header" | ||
| # endif | ||
| # endif | ||
| #endif |
Member
Author
There was a problem hiding this comment.
@zooba, did I do this right? This is how I understood your recommendation.
Member
There was a problem hiding this comment.
I don't think you want PYCORE_SIGNAL_WITH_PRE_INCLUDES in there. The header file is simply wrong if the system headers haven't been included, so it should always fail.
If the header needs to be used somewhere else, then that somewhere else also needs to include the headers. Alternatively, if it doesn't need to use the values (but just be able to allocate the structures), replace the SOCKET and HANDLE types entirely with void * and do casts anywhere they're actually being used.
This reverts commit d9a5dfa.
b8ff9df to
08799ad
Compare
zooba
reviewed
Dec 12, 2022
zooba
reviewed
Dec 12, 2022
carljm
added a commit
to carljm/cpython
that referenced
this pull request
Dec 14, 2022
* main: (103 commits) pythongh-100248: Add missing `ssl_shutdown_timeout` parameter in `asyncio` docs (python#100249) Assorted minor fixes for specialization stats. (pythonGH-100219) pythongh-100176: venv: Remove redundant compat code for Python <= 3.2 (python#100177) pythonGH-100222: Redefine _Py_CODEUNIT as a union to clarify structure of code unit. (pythonGH-100223) pythongh-99955: undef ERROR and SUCCESS before redefining (fixes sanitizer warning) (python#100215) pythonGH-100206: use versionadded for the addition of sysconfig.get_default_scheme (python#100207) pythongh-81057: Move _Py_RefTotal to the "Ignored Globals" List (pythongh-100203) pythongh-81057: Move Signal-Related Globals to _PyRuntimeState (pythongh-100085) pythongh-81057: Move faulthandler Globals to _PyRuntimeState (pythongh-100152) pythongh-81057: Move tracemalloc Globals to _PyRuntimeState (pythongh-100151) pythonGH-100143: Improve collecting pystats for parts of runs (pythonGH-100144) pythongh-99955: standardize return values of functions in compiler's code-gen (python#100010) pythongh-79218: Define `MS_WIN64` macro for Mingw-w64 64bit on Windows (pythonGH-100137) Fix: typo (Indention) (pythonGH-99904) pythongh-96715 Remove redundant NULL check in `profile_trampoline` function (python#96716) pythongh-100176: remove incorrect version compatibility check from argument clinic (python#100190) clarify the 4300-digit limit on int-str conversion (python#100175) pythongh-70393: Clarify mention of "middle" scope (python#98839) pythongh-99688: Fix outdated tests in test_unary (python#99712) pythongh-100174: [Enum] Correct PowersOfThree example. (pythonGH-100178) ...
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.