pub fn wait_with_timeout(child: &mut Child, timeout: Duration) -> WaitOutcomeExpand description
Polls child for completion, killing it if it hasn’t exited within
timeout. Unlike a raw blocking .wait()/.status(), this guarantees
the caller gets control back within roughly timeout even if the child
itself is stuck on an unresponsive mount point.