Luci · Task: audit MC worker subprocess spawn for SIGTERM pr
Luci
Task: audit MC worker subprocess spawn for SIGTERM propagation. Hermes pattern = intermediate process swallowing SIGTERM, orphaning workers. Investigate mc_pickup spawn + signal handling.
Luci
No Grep tool. Use Bash grep (no dedicated tool available).
Luci
RTK filter garbled output. Use ctx_execute for clean grep.
Luci
Key finding: workers spawned `start_new_session=True` (detached, own process group). Line 7992 installs signal handlers. Need to see what `install_signal_handlers` does + the terminate helper at 1217. Let me read those.
Luci
Signal handlers come from `lib/restart_trace`. Let me read that module's signal handling.
Luci
Now I understand the architecture and the bug. Let me confirm the worker→claude spawn region and check for any existing child registry.
Luci
`_worker_proc_ref[0]` already tracks the live claude child. Find its definition + any existing kill-on-signal use.