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 mostsuper::SRV_RESTART_BUDGETinsuper::SRV_RESTART_WINDOW) for a crash,srv_oom_restartsfor 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.
Errwhen 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.