Skip to content

class Process::Status
inherits Reference

The status of a terminated process. Returned by Process#wait.

Methods

#exit_code : Int32

If normal_exit? is true, returns the exit code of the process.

View source

#exit_signal : Signal

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.

View source

#exit_status : Int32

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.

View source

#normal_exit? : Bool

Returns true if the process terminated normally.

View source

#signal_exit? : Bool

Returns true if the process was terminated by a signal.

View source

#success? : Bool

Returns true if the process exited normally with an exit code of 0.

View source