The status of a terminated process. Returned by Process#wait.
If #normal_exit? is true, returns the exit code of the process.
If #signal_exit? is true, returns the Signal the process received and didn't handle.
Platform-specific exit status code, which usually contains either the exit code or a termination signal.
Returns true if the process terminated normally.
Returns true if the process was terminated by a signal.
Returns true if the process exited normally with an exit code of 0.
Reference
Reference
Object
Object
If #normal_exit? is true, returns the exit code of the process.
If #signal_exit? is true, returns the Signal the process received and didn't handle. Will raise if #signal_exit? is false.
Available only on Unix-like operating systems.
Platform-specific exit status code, which usually contains either the exit code or a termination signal. The other Process::Status methods extract the values from #exit_status.
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/Process/Status.html