Repository navigation
fix(core): Windows terminate_tree treats a vanished pid as stopped - #1874
Conversation
OpenProcess reports a pid that no longer exists as ERROR_INVALID_PARAMETER, so terminate_tree_of_a_missing_pid_reports_success (added in #1868) failed on windows-latest. Mirror the Unix ESRCH contract. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
Reopening immediately: a fresh |
|
Reopening immediately for a fresh |
Problem
The full matrix's
windows / Checklane fails atTestonmainsince #1868 (merged 2026-11-03 03:07Z). That PR had noci-fulllabel, so the Windows test lane never ran on it:(job 125825924182, run 41608933789, the setup-soldr exact-pin canary #1872)
On Windows,
terminate_treeforwards toterminate_pid, andOpenProcessreturnsERROR_INVALID_PARAMETER(87) for a pid that doesn't exist. Unix mapsESRCHtoOk(()).Fix
Make Windows
terminate_treetreat error 87 as already stopped. The existing test is the failing-first test (red on windows-latest). Onlycargo check --target x86_64-pc-windows-msvcwas run locally; this PR'sci-fullrun is the Windows proof.🤖 Generated with Claude Code