hive-agent-sock: kill what a subagent run leaves in its cgroup after it ends
This commit is contained in:
parent
566758483d
commit
2689efebcf
1 changed files with 82 additions and 11 deletions
|
|
@ -170,7 +170,10 @@ On `claude`, the signal is always SIGINT, and it goes to claude's whole
|
|||
process group. The signal doesn't reach a command that moved itself out of
|
||||
the group (`setsid`), and claude's Bash tool starts every command that way:
|
||||
claude stops those commands itself when it shuts down on SIGINT. A SIGKILL
|
||||
would leave them running, so nothing escalates to one. `interrupt` returns
|
||||
would leave them running, so nothing escalates to one while claude is
|
||||
alive. Once the run has ended, whatever is still in its cgroup is
|
||||
SIGKILLed after 30 seconds, so a command that left claude's process group
|
||||
cannot outlive the run. `interrupt` returns
|
||||
at once, and the name stays claimed until claude has exited: `status` says
|
||||
**stopping**, and the daemon refuses `start` and `continue` on that name
|
||||
until then. A claude that ignores the SIGINT stays stopping until someone kills
|
||||
|
|
|
|||
Loading…
Reference in a new issue