pub fn wait_timeout(
child: &mut Child,
timeout: Duration,
) -> Result<Option<ExitStatus>>Expand description
Wait up to timeout for child to exit, and reap it. None when it is
still running at the deadline; it is left running. On Unix this sleeps in
wait_child_or rather than polling.