Skip to main content

run_bounded

Function run_bounded 

Source
pub fn run_bounded(cmd: Command, timeout: Duration) -> Result<BoundedOutput>
Expand description

Run cmd to completion or timeout, whichever comes first.

On timeout, the child is SIGKILLed via Child::kill and reaped; timed_out is set and status is None. Both pipes are always drained so the child never blocks on a full pipe buffer.