Skip to content

Fix cleanup on Windows contained process startup failures - #160

Merged
zackees merged 2 commits into
mainfrom
feat/windows-spawn-cleanup
Sep 13, 2026
Merged

zackees merged 2 commits into
mainfrom
feat/windows-spawn-cleanup

Conversation

@zackees

@zackees zackees commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

Closes #159.
Coordinated with FastLED/cli#234 (overall rebase FastLED/cli#229).

Stacked on #158 only because the sibling checkout supplies both capabilities to FastLED. Land #158 first and retarget this PR to main. This fix must land and be published before FastLED consumes a released kernel process migration.

Creates the job before the suspended child; immediately owns child handles; checks ResumeThread; adds Drop cleanup covering resume, handle duplication, and watcher thread creation errors. Uses fallible thread creation instead of panic. Assignment errors explicitly terminate the unassigned child.

Tests: source ownership regression observed RED before implementation and GREEN afterward; fs,fs-watch Linux suite passes with GNU build ID linker flag; Windows MSVC tests compile under strict Clippy (-D warnings); formatting and diff checks pass. New Windows unit tests inject assignment/resume/duplicate failures, assert child termination, and verify native ResumeThread errors are reported. Native Windows execution is pending CI, not claimed by cross-compilation. The first concurrent cross-check lost rmeta files during Soldr failed-format cleanup; subsequent strict Windows Clippy passed.

One-agent clud-review: clean; focused test passed. No public API or dependency changes.

@zackees
zackees changed the base branch from feat/tree-fingerprint to main September 13, 2026 03:07
@zackees
zackees merged commit 1181fdf into main Sep 13, 2026
79 of 80 checks passed
@zackees
zackees deleted the feat/windows-spawn-cleanup branch November 5, 2026 05:51
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.

Windows spawn_sync: preserve fail-closed suspended-child startup and handle cleanup

1 participant