Skip to main content

output

Function output 

Source
pub fn output(cmd: &mut Command) -> Result<Output>
Expand description

cmd.output(), run again while a SIGKILL from outside ends it, up to KILLED_RUNS runs in all (module docs). Every other outcome is the first run’s, returned as Command::output returns it.

§Errors

When the child cannot start, as Command::output.

§Panics

When SIGKILL ends the child on every run: the message says the system killed it, and ends with the last run’s last lines of output.