Skip to main content

MAX_EXITED_STATUS

Constant MAX_EXITED_STATUS 

Source
const MAX_EXITED_STATUS: usize = 512;
Expand description

Per-shell stop handles + status. ShellStop fires the oneshot; ShellInput sends to the stdin relay; ShellStatus reads the live status arc. Lives in AppState.shell_sessions. Max number of EXITED shell statuses retained for post-exit ShellStatus queries. Running shells are always kept regardless of this cap; only exited entries beyond it are evicted oldest-first. Bounds memory for long-lived sidecars that spawn many short shells.