Repository navigation
Fix Linux command stopping and a stalled Claude Code queue, and make CI pass - #20
Merged
Merged
Conversation
procps's kill (Ubuntu 24.04) reads `-TERM -1234` as `kill(-1, SIGTERM)`: only the first digit of the group. A stopped command ignored the stop, and a group starting with 1 signalled every process the user has.
…nlocked The wake-up was sent while the session's lock was still held, so a waiter could fail to stop its process, go back to sleep with no other wake-up due, and sit out the queue time. A prewarmed process now wakes waiters too.
…arget in CI Two compaction tests queued replies after the first turn, racing its background summary for them. The background command test required a turn to finish within 900 ms; it now holds the command open instead. CI runs all test targets so one run shows every failure.
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.
Stopping a command signalled the wrong processes (Linux)
CodeSmith ran
/bin/kill -TERM -<pgid>, without--. Traced with signal 0 in containers:kill(-1): every process the user may signalkill(-1)kill(0): CodeSmith's own process groupOn 24.04 and Debian 12 only the first digit is kept, so a command also ignored the stop. v0.4.1 has the same code.
stop_childnow useskill(2)throughsignal_group, which refuses groups 1 and below.A queued Claude Code request could stall
The queue was woken while the finishing session was still locked, so a waiter could miss it and time out after 120 s. It is now woken after the unlock, and after a prewarm. Reproduced by holding the lock longer; there is no reliable regression test.
CI
scripts/ci.shruns every test target even after one fails.Replaces the diagnostic in #19.