Expand description
Whether a pid another srv recorded still belongs to that srv. A recorded
pid can belong to any program by now (chrome.exe, conhost.exe), so a live
pid alone says nothing (#1270, #5367): the process must be an
agentmux-srv binary that started no later than its claim was written.
Used by the slug migration’s stale-lock check and by a cron run another
channel follows (#1988).
Constants§
- START_
SLACK_ SECS - How long after a claim was written its srv may still have started: the claim’s time and the process’s start time come from different clocks’ rounding.
Functions§
- is_
srv_ that_ wrote srv_alive’s rule on a process’s executablenameand start time: anagentmux-srvbinary started no later than its claim was written.- srv_
alive - Whether
pidis still an srv, and, given when its claim waswritten, the one that wrote it. The name rule is the launcher’s (stale_srv.rs).