Repository navigation
Fix cleanup on Windows contained process startup failures - #160
Merged
Merged
Conversation
Refs #157, #155. Coordinated with FastLED/cli#233.
Closes #159. Coordinated with FastLED/cli#234.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.