Skip to content

Commit ee26f2e

Browse files
sourcehawkclaude
andcommitted
docs(skills/bounding-heavy-commands): say that a joined line stops on a Ctrl-C, not on a signal to the wrapper alone
The shell stops a line of joined commands when it gets the interrupt too, as with a Ctrl-C at the terminal. A signal sent to the wrapper alone ends the wrapper by that signal, and the shell runs the next command of the line. The usage text and the skill said that each stop signal to the wrapper stops the line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5f74532 commit ee26f2e

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎skills/bounding-heavy-commands/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ python3 "${CLAUDE_PLUGIN_ROOT}/skills/bounding-heavy-commands/scripts/bounded_ru
4444
| `--cpus <n>` | Processor limit, as a whole number. Taken from the record. |
4545
| `--exclusive <name>` | A resource that only one command may hold at a time, such as a fixed port. You choose the name. The wrapper keeps the names of each repository apart, and all worktrees of one repository share them. Repeat the option for each resource. |
4646
| `--measure` | Also print a suggested budget. Discovery uses it. With no `--memory`, the command runs with the default budget where the hard cap is available, and alone in the queue where it is not. |
47-
| `--measure-rows <n>,<n>,...` | Measure the command one time at each `--cpus` of the list, one after the other, the largest first. The largest runs with the `--memory` of the call. With no `--memory`, it runs with the default budget where the hard cap is available, and alone in the queue where it is not. Each smaller one runs with `--memory` at the suggested budget of the one before it. When the one before it did not exit 0, the smaller one runs with the same `--memory` as that one. Use it in place of `--cpus` and `--measure`. A stop signal ends the list. A stop signal to the wrapper then ends the wrapper by that signal, so that a line of joined calls stops too. Otherwise the exit code is the first exit code of a row that is not 0. |
47+
| `--measure-rows <n>,<n>,...` | Measure the command one time at each `--cpus` of the list, one after the other, the largest first. The largest runs with the `--memory` of the call. With no `--memory`, it runs with the default budget where the hard cap is available, and alone in the queue where it is not. Each smaller one runs with `--memory` at the suggested budget of the one before it. When the one before it did not exit 0, the smaller one runs with the same `--memory` as that one. Use it in place of `--cpus` and `--measure`. A stop signal ends the list. A stop signal to the wrapper then ends the wrapper by that signal. So a Ctrl-C, which reaches the shell too, stops a line of joined calls; a signal sent to the wrapper alone does not stop the shell's line. Otherwise the exit code is the first exit code of a row that is not 0. |
4848
| `--label <name>` | A name for the row lines of a measurement, such as `unit-tests`. Use letters, digits, `.`, `_`, and `-`, and start with a letter or a digit. It changes nothing else. |
4949
| `--check` | Run no command. Print the state of the queue now, and for each `--memory`, whether a command of that budget would start now. It takes only `--memory`, which you can repeat. It holds no slot, and its exit code is 0. §The record says how to choose a row with it. |
5050

‎skills/bounding-heavy-commands/scripts/bounded_run.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
The exit code is the exit code of the command. Exit code 125 means that this
99
script failed before the command gave a result. A stop signal to this script
1010
(SIGHUP, SIGINT, SIGQUIT, or SIGTERM) stops the command, and then this script
11-
ends by the same signal, so that a shell stops a line of joined commands. A
12-
caller that reads the exit status reads 128 plus the signal.
11+
ends by the same signal. So a Ctrl-C at the terminal, which reaches the shell
12+
too, stops a line of joined commands; a signal sent to this script alone does
13+
not stop the shell. A caller that reads the exit status reads 128 plus the
14+
signal.
1315
1416
A measurement prints one row line on the error stream, in a fixed form:
1517

0 commit comments

Comments
 (0)