stubbsta 39796a51d7
Wait for graceful Anvil exit before escalating to KILL
stopAnvil gave Anvil a single 200ms window after TERM before sending
KILL, risking a truncated state dump during regeneration. It also
checked liveness with kill -0, which succeeds for an exited-but-unreaped
zombie child, so the KILL escalation fired even after clean exits.
Poll osproc running() (which reaps the child) for up to 10s instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-03 10:52:32 +02:00
..