Skip to main content

should_auto_revive

Function should_auto_revive 

Source
pub fn should_auto_revive(
    memory_enabled: bool,
    daemon_down: bool,
    already_attempted: bool,
) -> bool
Expand description

Whether the background prober should attempt an automatic revive. One attempt per session (success or failure — a broken daemon must not spawn a retry loop), only for users who enabled memory, and never when the binary is missing (that is an install decision, not a restart). Pure.