Skip to main content

Module unix

Module unix 

Source

Functions§

describe_srv_exit 🔒
How srv ended, for the log: “with code 3”, or “killed by signal 9 (SIGKILL)” when a signal ended it and there is no exit code. An outage on 2026-10-24 logged “code 1” for an srv that was killed, which hid the signal.
end_agents_left_by_srv 🔒
srv is gone. An agent CLI it didn’t close (srv was killed, crashed, or ran out of time) still runs in its own process group: end it and what it started. srv deletes agent-roots.json when it closed every agent itself. srv_pid is the pid taken when srv was spawned: tokio’s Child::id() is None once the child has been waited on, which is the case here.
next_signal 🔒
Await the next delivery of a Unix signal, or never resolve if the signal stream couldn’t be installed. Lets run_unix’s select! treat an absent handler as “this branch is dormant” rather than special-casing Option at every poll.
offer_go_back 🔒
A .deb/.rpm upgrade the app did that now can’t be kept running: offer the version before it (upgrade_package::offer_go_back). true when the user said yes and the helper is waiting for this launcher to exit.
run_unix 🔒
Unix (macOS/Linux) main flow: resolve paths → bind launcher IPC socket (single-instance signal) → set up reducer / event log / saga coordinator / IPC server → spawn srv → spawn host with srv endpoints AND the launcher socket path in env → supervised wait → cleanup.
srv_exit_text 🔒
describe_srv_exit for a real exit status.