Skip to main content

Module process_identity

Module process_identity 

Source
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 executable name and start time: an agentmux-srv binary started no later than its claim was written.
srv_alive
Whether pid is still an srv, and, given when its claim was written, the one that wrote it. The name rule is the launcher’s (stale_srv.rs).