mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
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]>