Repository navigation
fix: read powershell output as UTF-8, kill every tree member past a refusal, release despite a failed scan - #90
Merged
Merged
Conversation
…efusal, release despite a failed scan (#89)
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 #89
Summary
Evidence
ProcessTree.rowson a process withhéllo-שלוםin its command line →h�llo-????After:
reads a non-ASCII command line through powershell(win32, real process) passeskillPosixTreestops at the first EPERMAfter:
killEachunit test: pid 50 throws EPERM → 100, 50, 30 all signalled, EPERM thrownleeway releasewith an emptyPATH→ exit 1, noreleasedlineAfter: exit 0, stdout
leeway: released …, stderrleeway: could not check … for servers still listeningpnpm verifygreen on Windows. Linux run via docker (no podman here): all green apart fromsrc/vite.test.ts, which also fails in docker onmain.Merge Danger
Door: two-way
Blast Radius: small
Windows
leeway listand port-holder lines change from garbled to correct. On a failed scan,releasenow exits 0 instead of 1.killEachis now public so the unit test can reach it, but it isn't in the package's exports.