Repository navigation
Conversation
Contributor
|
Verified head
AI-assisted. |
This was referenced Nov 23, 2026
|
Tested
|
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.
What
Keep per-run quick-exit handlers and run them newest first on quick_exit; immediate termination skips them.
Why
Mapped modules otherwise register with the host CRT, while the shim runs none of their quick-exit handlers.
Tested
Windows p2: process_cmdline_test passed with a callback registering another during quick_exit; a count-limited drain negative control failed all 6 quick_exit cases (23 instead of 231). Mapped executable registration remains untested: the existing fixture needs a separate executable and test target.
Windows p2, process_cmdline_test: origin/main with the regression test failed (6 missing imports); patched revision passed all 12 registration/termination combinations.
Review follow-up adds ordinary exit and _Exit to the registration/termination matrix. On Windows p2,
/root/fast_test_exe.sh /root/c2-c2-process-at-quick-exit process_cmdline_testpassed at 7219cf1.git diff --check and scripts/check_no_game_data.py on changed files passed. No game files or GPU used.
AI-assisted (Codex).
@ItsNotRexed: an exe PR, as you asked.
Claim: #8504 (comment)