Skip to main content

run_piped_timeout

Function run_piped_timeout 

Source
pub fn run_piped_timeout(
    bin: &str,
    args: &[OsString],
    timeout: Duration,
) -> Result<Output>
Expand description

Run a command with a timeout, capturing stdout and stderr.

The child process receives SIGKILL after timeout if it has not exited.