Skip to content

fix(ports): end a batch file's process tree on Windows (review on #1053) - #4

Merged
leonardoxr merged 1 commit into
mainfrom
fix/windows-android
Oct 30, 2026
Merged

leonardoxr merged 1 commit into
mainfrom
fix/windows-android

Conversation

@leonardoxr

Copy link
Copy Markdown
Owner

CodeRabbit review fix for callstackincubator#1053: taskkill /T for wrapped batch launches, reporting the signal sent.

`kill()` on Windows signalled only the child, which for a batch file is
the `cmd.exe` wrapper, so a timed-out or aborted `sdkmanager` left its
Java running. A wrapped batch launch is now ended with `taskkill /T /F`
while the wrapper is alive, which also ends what the script started.
`taskkill` makes the wrapper exit with code 1 where `child.kill`
reports a signal, so the handle reports the signal it sent, and a
timeout still reads as one (`code: null`). Every other Windows child is
killed as before.

Addresses CodeRabbit review on callstackincubator#1053.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@leonardoxr
leonardoxr merged commit de9a408 into main Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant