Skip to main content

wait_until_stopped

Function wait_until_stopped 

Source
pub fn wait_until_stopped(root: &Path) -> bool
Expand description

Poll until no daemon is listening for root, up to ~5s. Used by restart after a Shutdown so the fresh daemon isn’t spawned while the old one still holds the endpoint (it would exit as a no-op). Returns true once the endpoint is free, false on timeout.