dementus
1043f00d06
fix(shutdown): kill entire process tree to prevent orphaned Claude processes
...
The previous implementation used `pkill -P pid` which only kills direct
children. When Claude spawns subprocesses (like node workers), those
grandchild processes would become orphaned (PPID=1) when their parent
was killed, causing them to survive `gt shutdown -fa`.
The fix recursively finds all descendant processes and kills them in
deepest-first order, ensuring no process becomes orphaned during
shutdown.
Fixes: gt-wd3ce
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-13 18:21:25 -08:00
..
2026-01-11 21:44:30 -05:00
2026-01-13 13:19:27 -08:00
2026-01-13 13:37:00 -08:00
2026-01-13 13:14:47 -08:00
2026-01-11 23:04:03 -08:00
2026-01-08 12:36:54 -05:00
2026-01-13 17:53:28 -08:00
2026-01-13 13:34:22 -08:00
2026-01-11 23:04:03 -08:00
2026-01-10 01:07:01 -08:00
2026-01-13 13:19:27 -08:00
2026-01-13 13:14:47 -08:00
2026-01-09 22:07:35 -08:00
2026-01-02 12:23:55 -08:00
2026-01-13 13:19:27 -08:00
2026-01-13 13:19:27 -08:00
2026-01-12 00:47:11 -08:00
2026-01-09 22:23:44 -08:00
2026-01-12 18:12:39 -08:00
2026-01-12 01:45:09 -08:00
2026-01-12 01:47:14 -08:00
2026-01-11 23:04:03 -08:00
2026-01-13 13:19:27 -08:00
2026-01-13 03:24:42 -08:00
2026-01-11 21:44:30 -05:00
2026-01-13 13:19:27 -08:00
2026-01-12 17:48:07 -08:00
2026-01-13 13:37:00 -08:00
2026-01-12 23:48:56 -08:00
2026-01-13 13:34:22 -08:00
2026-01-13 13:27:04 -08:00
2026-01-13 13:19:27 -08:00
2026-01-13 13:19:27 -08:00
2026-01-09 21:57:11 -08:00
2026-01-08 20:25:01 -08:00
2026-01-13 13:19:27 -08:00
2026-01-11 18:49:01 -08:00
2026-01-09 22:31:55 -08:00
2026-01-13 13:09:28 -08:00
2026-01-13 18:21:25 -08:00
2026-01-09 14:11:09 -08:00
2026-01-12 23:48:56 -08:00
2026-01-13 13:19:27 -08:00
2026-01-11 23:04:03 -08:00
2026-01-09 18:14:17 -08:00
2026-01-03 18:25:37 -08:00
2026-01-13 13:19:27 -08:00
2026-01-13 13:19:27 -08:00
2026-01-13 00:17:59 -08:00
2026-01-09 21:57:11 -08:00