yetone
382c8c0bdf
proc: magpie serve reaps the processes it adopts (Kling__Lab on X)
...
254 <defunct> children of `magpie serve` after 7 days, growing ~9 an hour
(magpie, uv, node, npm, magpie-bun, code-review-graph), only a restart
cleared them. Every command magpie starts is waited for (the AST guard
TestEveryStartedCommandIsWaited holds, and I read each Start site and
Output/StartTree/StartReaped by hand: none is missed). The zombies are the
grandchildren: an agent CLI's MCP servers whose parent ended are adopted by
magpie where it is PID 1 (a container) or a child subreaper, and nothing
waits for a process it never started.
proc.KeepReaping (Linux, from serve) does nothing unless magpie adopts
(PID 1 or PR_GET_CHILD_SUBREAPER), and then reaps a child of its own that
was a zombie at two looks 5s apart. Not tried: the reporter's container;
the cause (PID 1 / subreaper) is inferred from the report, not seen.
Run: TestAdoptedOrphansAreReaped (subreaper test process, 6 orphans) and
the proc package through wsl-run on magpie-desktop: ok. Broken by hand
(KeepReaping returning at once): 6 adopted zombies left, red.
2026-11-13 10:29:07 +08:00
..
2026-11-09 12:56:42 +08:00
2026-11-02 15:53:25 +08:00
2026-11-10 12:54:39 +08:00
2026-10-08 15:04:24 +08:00
2026-10-14 08:36:07 +08:00
2026-10-14 08:36:07 +08:00
2026-10-27 12:28:06 +08:00
2026-10-27 12:28:06 +08:00
2026-10-28 18:26:59 +08:00
2026-10-27 12:28:06 +08:00
2026-10-27 15:57:41 +08:00
2026-10-27 15:57:41 +08:00
2026-10-27 15:57:41 +08:00
2026-10-28 07:10:09 +08:00
2026-11-10 12:54:39 +08:00
2026-10-28 00:19:24 +08:00
2026-10-28 00:19:24 +08:00
2026-11-09 12:56:42 +08:00
2026-11-11 14:04:37 +08:00
2026-11-04 04:47:02 +08:00
2026-11-04 04:47:02 +08:00
2026-11-02 16:24:51 +08:00
2026-11-02 16:24:51 +08:00
2026-11-02 16:24:51 +08:00
2026-11-12 09:46:34 +08:00
2026-11-12 09:46:34 +08:00
2026-10-27 18:52:15 +08:00
2026-10-27 18:52:15 +08:00
2026-10-27 18:52:15 +08:00
2026-10-28 00:19:24 +08:00
2026-09-29 11:59:57 +08:00
2026-10-24 21:00:05 +08:00
2026-11-04 14:25:43 +08:00
2026-10-24 21:00:05 +08:00
2026-11-12 09:46:34 +08:00
2026-11-12 09:46:34 +08:00
2026-11-12 09:46:34 +08:00
2026-11-04 23:55:14 +08:00
2026-10-27 15:57:41 +08:00
2026-11-12 09:46:34 +08:00
2026-11-04 23:55:14 +08:00
2026-11-03 20:38:11 +08:00
2026-11-10 18:33:35 +08:00
2026-11-02 11:01:51 +08:00
2026-11-03 20:38:11 +08:00
2026-11-10 18:33:35 +08:00
2026-11-12 09:46:34 +08:00
2026-10-25 17:41:41 +08:00
2026-10-25 17:41:41 +08:00
2026-10-25 17:41:41 +08:00
2026-10-11 06:41:06 +08:00
2026-10-27 06:45:37 +08:00
2026-10-27 06:45:37 +08:00
2026-10-27 06:45:37 +08:00
2026-11-13 10:29:07 +08:00
2026-11-13 10:29:07 +08:00
2026-11-13 10:29:07 +08:00
2026-11-03 17:58:31 +08:00
2026-11-06 00:34:42 +08:00
2026-10-17 05:35:45 +08:00
2026-11-11 14:04:37 +08:00
2026-10-27 06:45:37 +08:00
2026-11-11 14:04:37 +08:00
2026-10-25 17:41:41 +08:00
2026-10-25 17:41:41 +08:00
2026-10-25 17:41:41 +08:00
2026-10-13 05:21:03 +08:00
2026-10-13 05:21:03 +08:00
2026-10-20 20:23:51 +08:00
2026-11-02 16:24:51 +08:00
2026-10-20 20:23:51 +08:00
2026-10-10 10:51:48 +08:00
2026-10-13 05:21:03 +08:00
windows: the desktop app no longer opens a console window for every command it runs ( #54 ) — it is linked as a GUI program and has no console, so each console CLI it started (devin auth status and models list, devin acp for every Devin turn, claude, codex, cursor-agent and grok probes and runs, grok login) was given a new console by Windows, and a Windows Terminal window with it, some every few seconds while the app sat idle. Every command magpie runs is now made through internal/proc, which starts it with CREATE_NO_WINDOW when magpie has no console of its own: the child gets a console without a window, and its output, which magpie always pipes back, arrives as before. A magpie run in a terminal (magpie serve, the TUI, the desktop app started from one with a command) has one, and its children share it as they did, so Ctrl+C there still reaches them. The relaunch after an update keeps its DETACHED_PROCESS, added to rather than replacing the flags it was made with, and a test fails on any command made with os/exec directly, so a new one can't bring the windows back
2026-09-25 14:04:44 +08:00
2026-11-06 21:28:24 +08:00
2026-11-10 18:33:35 +08:00
2026-11-10 18:33:35 +08:00
2026-10-09 13:44:50 +08:00
2026-10-09 13:44:50 +08:00
2026-11-03 17:58:31 +08:00
2026-10-28 18:26:59 +08:00
2026-10-25 17:41:41 +08:00
2026-10-25 17:41:41 +08:00
2026-10-25 17:41:41 +08:00
2026-10-30 01:22:45 +08:00
2026-10-30 01:22:45 +08:00
2026-10-30 01:22:45 +08:00
2026-10-30 01:22:45 +08:00
2026-10-30 01:22:45 +08:00
2026-10-30 01:22:45 +08:00
2026-10-15 01:22:13 +08:00
2026-10-15 01:22:13 +08:00
2026-10-15 01:22:13 +08:00
2026-10-15 01:22:13 +08:00
2026-10-15 00:15:25 +08:00
2026-10-15 00:15:25 +08:00
2026-10-07 03:00:47 +08:00
2026-11-06 17:31:04 +08:00
2026-11-06 17:31:04 +08:00
2026-10-12 23:56:20 +08:00
2026-11-10 18:33:35 +08:00
2026-11-07 17:51:51 +08:00
2026-11-07 17:51:51 +08:00
2026-11-07 17:51:51 +08:00
2026-11-07 17:51:51 +08:00
2026-11-07 17:51:51 +08:00
2026-11-07 17:51:51 +08:00