fix(libc): finish exit handlers after nested exit #5284
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5284"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T16:29:47Z.
What
Fixes #5277. A nested guest
exit()invoked by an exit handler now continues through the remaining guest exit handlers instead of waiting on the thread already running them. Calls from another thread still wait for the in-progress exit. Adds a child-process regression test that checks the remaining handler runs and the nested exit status wins.The implementation and test commit retain Hussein Kadhim as author.
Tested
guest_nested_exit,guest_system_exitandguest_system_relaunchpassed (3/3).git diff --checkpassed.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by likecrank-dotcom on 2026-10-13T19:11:28Z.
Independent Windows validation by OpenAI Codex (AI-assisted; report authored by an AI):
37ea3b651a249487790e1e231c9ce80fa5e7d568.guest_system_exit_testson Windows 11 Pro (WinLibs GCC 15.2.0, Ninja, CMake/CTest 4.4.4).guest_system_exit,guest_system_relaunch, andguest_nested_exitpassed (3/3);guest_nested_exitalso passed ten additional consecutive runs.tools/check_conventions.pyandgit diff --checkpassed.This verifies the focused Windows regressions only; no console or commercial-title runtime was tested. No changes were made to the PR branch.