Files
hermes-agent/hermes_cli
kshitijk4poor 9cb4e058cd fix(process): a supervisor a broken-pipe write dropped is still restarted by its waiter
Gate (2c): while the waiter thread sits in the untimed wait() it holds the Popen's waitpid lock, so
poll() keeps answering "running" for a supervisor that has died. A registration change in that
window writes into the dead pipe, gets BrokenPipe and drops the supervisor (_supervisor = None);
the waiter then saw "not current" and only reaped it, so the registered groups stayed uncovered
until the next registration change. The waiter now returns early only when another supervisor
already replaced it; a dropped one is restarted and replayed like a current one (a deliberate
release still ends at the empty-set check).

Test: kill the supervisor and drop it under the lock, as the broken-pipe caller does; a replacement
starts and kills the replayed group on EOF. Fails with the old check.
2026-10-29 16:58:09 +05:30
..
2026-10-09 17:34:38 +02:00
2026-10-21 23:05:11 -04:00
2026-10-09 17:34:38 +02:00
…
2026-10-20 22:18:49 -04:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
…
2026-10-09 17:34:38 +02:00
…
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
…
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
…
2026-10-09 17:34:38 +02:00
…
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00