Skip to main content

wait_inherited_with_timeout

Function wait_inherited_with_timeout 

Source
pub fn wait_inherited_with_timeout(
    child: Child,
    timeout: Duration,
    kill_group: bool,
) -> (ExitStatus, bool)
Expand description

Wait for a child whose stdio is inherited (its output goes straight to the caller’s file, pipe or terminal), ending it at timeout with the same kill as wait_with_limits_captured: the child’s own process group when it leads one (kill_group), else the child alone (#2268). Returns the exit status and whether the deadline fired.