Skip to main content

HANDOFF_SHUTDOWN_FLUSH_TIMEOUT

Constant HANDOFF_SHUTDOWN_FLUSH_TIMEOUT 

Source
pub const HANDOFF_SHUTDOWN_FLUSH_TIMEOUT: Duration;
Expand description

Host fallback window for sandboxes that hand PID 1 to another init.

agentd uses this window to sync() block-backed root filesystems and power off the kernel cleanly (or run its handoff sequence — see HANDOFF_POWEROFF_TIMEOUT). On a healthy guest the VMM exits well inside the window and the host fallback is a no-op; the fallback only fires when the guest is wedged.

Equals HANDOFF_POWEROFF_TIMEOUT plus SHUTDOWN_FLUSH_MARGIN for the init’s own signal handling — enforced at compile time below.