A crashed daemon's PID can be recycled by an unrelated process, so the bare-PID pidfile let 'devbox stop' SIGTERM a stranger and 'devbox start' refuse over a reused PID. The pidfile now records '<pid> <starttoken>' (Linux /proc/<pid>/stat field 22 start time); runningPid only treats the PID as our daemon when the token still matches. Falls back to bare-PID liveness where the token is unverifiable (non-Linux) — no regression. Verified on real linux/arm64. [fanned-out subagent: harden-pidfile] |
||
|---|---|---|
| .. | ||
| devbox | ||
| devbox-hub | ||