kshitijk4poor
4a2b23d77e
fix(mcp): release the death supervisor once nothing is left to reap
...
Follow-up to the salvaged #93517 . Two gaps found in review:
- After the last unregister the supervisor stayed resident for the life of
the process (~15 MB + a pipe) in any gateway/cron that ever connected a
stdio server; main's per-server watchdog exited with its server. Close
our write end when the supervised set empties: EOF with nothing
registered makes the supervisor exit without reaping, and the next
register already respawns and replays.
- A child that raced and exited before os.getpgid dropped its group from
coverage entirely. The SDK spawns stdio servers as session leaders
(pgid == pid), so fall back to the pid instead; the prune forgets the
group once nothing in it is alive.
Tests: fake-supervisor release/re-spawn sequence, and a real-process EOF
release (supervisor exits 0, unregistered child untouched). Mutation
checked: disabling the release branch fails both.
2026-09-03 02:24:06 +05:30
..
2026-08-29 18:35:17 -07:00
2026-08-31 11:29:17 -07:00
2026-08-29 18:13:20 -07:00
2026-08-16 22:08:05 -07:00
2026-08-28 23:10:01 -07:00
2026-08-31 01:04:11 -07:00
2026-08-27 13:48:51 -07:00
2026-08-15 02:51:59 +05:30
2026-08-23 20:00:18 -07:00
2026-09-02 06:18:55 -07:00
2026-08-23 02:16:11 -07:00
2026-09-02 03:42:01 -07:00
2026-08-24 21:51:44 -07:00
2026-08-28 04:57:52 -07:00
2026-08-21 22:33:45 +05:30
2026-08-31 21:59:11 +05:30
2026-09-03 02:24:06 +05:30
2026-08-31 21:59:11 +05:30
2026-08-19 16:31:16 -07:00
2026-08-26 18:02:17 +05:30
2026-08-14 21:24:36 -07:00
2026-08-26 16:42:44 -07:00
2026-08-28 23:10:01 -07:00
2026-08-29 18:13:20 -07:00
2026-09-02 05:34:28 -07:00
2026-08-28 01:39:33 -07:00
2026-08-28 03:05:03 -07:00
2026-09-03 01:33:18 +05:30
2026-09-02 20:16:14 +05:30
2026-09-01 22:28:52 -07:00
2026-09-02 10:12:54 -07:00
2026-08-16 20:14:51 -07:00
2026-08-31 21:11:11 -05:00
2026-08-28 23:10:01 -07:00
2026-09-02 05:34:28 -07:00
2026-08-26 06:26:02 -07:00
2026-09-02 05:34:28 -07:00
2026-08-28 23:10:01 -07:00
2026-08-13 11:09:51 -07:00
2026-08-28 03:58:52 -07:00
2026-08-23 16:04:41 -07:00
2026-08-31 10:42:39 -07:00
2026-09-02 05:32:01 -07:00
2026-09-02 00:03:55 -07:00
2026-09-03 02:24:06 +05:30
2026-08-28 20:16:26 -07:00
2026-08-25 10:55:53 +10:00
2026-08-17 03:03:35 -07:00
2026-09-03 02:24:06 +05:30
2026-08-20 20:20:23 -07:00
2026-08-26 02:54:35 +05:30
2026-08-28 23:10:01 -07:00
2026-09-03 02:05:42 +05:30
2026-08-28 03:24:43 -07:00
2026-08-29 18:13:20 -07:00
2026-09-03 02:00:35 +05:30
2026-08-29 18:13:20 -07:00
2026-09-01 20:55:35 +05:30
2026-08-28 08:46:11 -07:00
2026-08-28 23:10:01 -07:00
2026-08-28 23:10:01 -07:00
2026-08-28 23:10:01 -07:00
2026-09-02 07:00:13 -07:00
2026-08-17 10:03:36 -07:00
2026-08-31 10:06:34 -07:00
2026-09-01 21:49:14 -07:00
2026-08-29 17:58:51 -07:00
2026-08-31 10:08:13 -07:00
2026-09-01 07:32:45 -07:00
2026-08-31 10:08:13 -07:00
2026-08-17 17:04:40 -07:00
2026-08-29 20:39:31 -07:00
2026-09-01 01:39:59 -07:00
2026-08-24 20:25:10 -07:00
2026-08-30 20:04:40 +05:30
2026-08-13 11:09:51 -07:00
2026-09-02 10:33:43 -07:00
2026-08-15 23:48:15 -07:00
2026-09-02 05:34:28 -07:00
2026-09-03 02:07:42 +05:30
2026-08-29 20:39:31 -07:00
2026-09-01 21:49:14 -07:00
2026-08-29 18:55:29 -07:00
2026-09-01 10:56:49 -07:00
2026-08-20 00:16:22 -07:00
2026-09-01 23:30:33 -07:00
2026-09-01 21:49:14 -07:00
2026-08-23 18:25:35 -07:00
2026-09-02 06:48:31 -07:00
2026-09-01 10:56:49 -07:00
2026-08-28 05:10:33 -07:00
2026-09-01 16:01:53 -04:00
2026-08-23 03:54:52 -07:00
2026-08-12 19:01:30 -07:00
2026-08-25 04:21:45 -07:00
2026-09-01 10:56:49 -07:00
2026-09-02 10:33:43 -07:00
2026-08-16 21:20:29 -07:00
2026-08-16 21:20:29 -07:00