Files
devvm/docs/content
w3cjandClaude Opus 5.5 50b4e796b7 fix(daemon): a proxy just started whose arguments read as none yet is still waited for
On Linux, a process devvm has just started shows empty arguments in
/proc/<pid>/cmdline for a moment: exec lets the parent go on once the new
program replaces its memory, and the kernel sets the argument area only
once the program has loaded. Proc.Ready took that moment as the proxy
having ended, so a start under load failed at once with
proxy_start_failed while the proxy ran on, its log and status empty.
Ready now counts the process as running while its pid file names it, it
is alive, and its arguments are its own or can't be read yet
(Proc.starting); an ended one is reaped by Detach, so it stops counting.

Tests: TestReadyArgsUnread (fails on the old code).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 11:18:26 -07:00
..