fix: stop a child-process guest that outlives the boot timeout #6

Manually merged
github merged 1 commit from gh-pr/6/head into gh-pr/6/base 2026-11-26 19:55:19 +00:00
Owner

@⁠AutoComput on GitHub · 2026-11-21 10:15 UTC · original
AutoComput:fix/child-boot-timeout → main · +9 −1 · 1 files · 1 commits · merged 2026-11-22 09:58 UTC

TL;DR

  • Problem: A game that runs for more than a minute is reported as having crashed, and it keeps running in the background.
  • Fix: The game is now stopped and the message says it timed out.

Child-process boot waits 60 seconds for the guest. If the guest is still running after that, its exit code reads as 259 (STILL_ACTIVE), which gets reported as "exited with non-zero code: 259", and the guest keeps running in the background.

Now the guest is terminated and the error says it timed out. The 60 seconds are unchanged.

Checked by booting a package whose executable just sleeps: error after 60 s, no process left over. No automated test, it would add a minute to the suite. Touches the same function as #1 but not the same lines.

**@⁠AutoComput** on GitHub · 2026-11-21 10:15 UTC · [original](https://github.com/Freminet/ScarlettX/pull/6) `AutoComput:fix/child-boot-timeout` → `main` · +9 −1 · 1 files · 1 commits · merged 2026-11-22 09:58 UTC **TL;DR** - **Problem:** A game that runs for more than a minute is reported as having crashed, and it keeps running in the background. - **Fix:** The game is now stopped and the message says it timed out. Child-process boot waits 60 seconds for the guest. If the guest is still running after that, its exit code reads as 259 (`STILL_ACTIVE`), which gets reported as "exited with non-zero code: 259", and the guest keeps running in the background. Now the guest is terminated and the error says it timed out. The 60 seconds are unchanged. Checked by booting a package whose executable just sleeps: error after 60 s, no process left over. No automated test, it would add a minute to the suite. Touches the same function as #1 but not the same lines.
After the 60 second wait the exit code of a still running guest (259) was
reported as its result and the process was left behind. It is now stopped
and reported as a timeout.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:55:17 +00:00
github manually merged commit e20ac9868a into gh-pr/6/base 2026-11-26 19:55:19 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.