devbox/cmd
shoemoney f9c33d49d1 harden(pidfile): guard against PID reuse with a start-time token 🆔
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]
2026-06-23 03:00:30 -05:00
..
devbox harden(pidfile): guard against PID reuse with a start-time token 🆔 2026-06-23 03:00:30 -05:00
devbox-hub harden(dos): bound request bodies + add hub server timeouts 🚪🛡️ 2026-06-23 02:59:53 -05:00