{"version":"2.1.333","anchor":"process-tree-kill-follows-reparented-descendants-via-proc-s","canonical_anchor":"process-tree-kill-follows-reparented-descendants-via-proc-s","heading":"Stopping a shell task on Linux can now find leftover child processes through \/proc","tier":"notice","area":"Bash Tool","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/process-tree-kill-follows-reparented-descendants-via-proc-s","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Stopping a shell task on Linux can now find leftover child processes through \/proc\n\nOn Linux, stopping a shell task now also scans \/proc for processes in the same session when ps fails, with a new \/proc stat reader\n\n**What**\n\nWhen Claude Code stops a shell command, it stops the whole group of processes the command started. On Linux, this release adds:\n\n- When the `ps` command fails, Claude Code now also looks through `\/proc` (the Linux folder that describes running processes) for processes in the same session and stops their groups too. This catches child processes that were moved under a different parent. It is controlled by `bot_protected_tengu_typed_breeze`, and nothing has been read about the `tengu_typed_breeze` gate in this release. The process lookup now also reports whether `ps` failed.\n\n- A process helper, `statSync`, reads `\/proc\/<id>\/stat` for a process and returns nothing when the process no longer exists.\n\n**Why**\n\nOn Linux, fewer stray processes should be left running after a shell task is stopped, even when `ps` is unavailable or fails.\n\n- Area: Bash Tool\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}