Skip to main content

exit_code_from_output

Function exit_code_from_output 

Source
pub fn exit_code_from_output(output: &Output, label: &str) -> i32
Expand description

Extract exit code from a process output. Returns the actual exit code, or 128 + signal per Unix convention when terminated by a signal (no exit code available). Falls back to 1 on non-Unix platforms.