Skip to main content

Module srv_exit

Module srv_exit 

Source
Expand description

What the Unix supervisor does when srv exits: classify the exit, and start srv again (SPEC_UNIX_SRV_RESTART_BUDGET_2026_10_24). The Windows supervisor does the same inline in run_windowsโ€™s srv arm.

Structsยง

Srv ๐Ÿ”’
The srv the launcher runs, replaced as a whole when it is started again.

Enumsยง

SrvAction ๐Ÿ”’
What the supervisor does next about an srv exit.
SrvExit ๐Ÿ”’
What to do about an srv exit.

Functionsยง

classify_srv_exit ๐Ÿ”’
Classify an srv exit and charge it to the right budget: srv_restarts (at most super::SRV_RESTART_BUDGET in super::SRV_RESTART_WINDOW) for a crash, srv_oom_restarts for one that happened while the computer was out of memory. On Linux a kernel OOM kill arrives as SIGKILL, so the low commit reading decides, as for the window process.
is_group_shutdown ๐Ÿ”’
The signals that mean the whole group is being shut down, not that srv crashed.
respawn_srv ๐Ÿ”’
srv died. End what it left running, then start it again and point the notification presenter at it. The new srv resumes the same agent sessions, so their old CLIs must be gone first, or two would run on one session. Err when the new srv could not start.
signal_name ๐Ÿ”’
The name of a signal, or โ€œโ€ when it has none worth a word.
srv_exit_action ๐Ÿ”’
Decide what to do about srvโ€™s exit: classify it, charge the budgets, log it, and record and show the give-up when the budget is spent. The three places that see srv exit call this.