Skip to main content

shell_status_code

Function shell_status_code 

Source
pub fn shell_status_code(status: ExitStatus) -> Option<i32>
Expand description

Return the numeric exit code, or 128 + signal for Unix signal termination.

An unclassified status returns None. Callers choose its fallback and the conversion to their CLI’s supported exit-code range. This does not wait, signal, reap or otherwise manage a process, and does not imply success.