Function sysexit::from_status [] [src]

pub fn from_status(status: ExitStatus) -> Code

Converts std::process::ExitStatus to sysexit::Code.

On Unix, if the process was terminated by a fatal signal, the corresponding signal exit code is returned. If the passed exit status cannot be determined, sysexit::Unknown is returned.