Repository navigation
fix: forward SIGQUIT to the command process group - #85
Merged
Merged
Conversation
Owner
Author
|
Written by Claude (AI assistant) on behalf of @OhadC. Review by a separate agent: acceptance criteria of #40 met; the README over-claimed.
|
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.
Summary
On Linux and macOS, Ctrl+\ now stops the command tree too: leeway forwards SIGQUIT to the command's process group, the same way it forwards the other stop signals.
POSIX_FORWARDED_SIGNALS SIGINT SIGTERM SIGHUP + SIGQUITThe README's line on stopping leeway now names each stop key and signal for each OS. The ADR's list of forwarded signals now includes SIGQUIT.
Evidence
Test:
leeway <command> on a signal > %s stops the whole command tree, so nothing is left listening, now run for SIGQUIT too (pnpm test:linux).SIGQUITfails atexpect(await stopsAnswering(port)).toBe(true). leeway dies, but its command keeps holding the port.After: all four signals pass.
pnpm verify,pnpm test:linuxandpnpm test:packageare green.Merge Danger
Door: two-way
Blast Radius: small
Ctrl+\ / SIGQUIT now stops the command instead of killing only
leeway. leeway exits 1, or with the command's own exit code. It no longer core-dumps from SIGQUIT.Closes #40