Ruby Process::Status Functions
EditRocket provides the following information on Process::Status functions in the Ruby source code builder.
coredump? - Returns true if stat generated a coredump when it terminated. Not available on all platforms.
exited? - Returns true if stat exited normally (for example using an exit() call or finishing the program).
exitstatus - Returns the least significant eight bits of the return code of stat. Only available if exited? is true.
inspect - Override the inspection method.
pid - Returns the process ID that this status object represents.
signaled? - Returns true if stat terminated because of an uncaught signal.
stopped? - Returns true if this process is stopped. This is only returned if the corresponding wait call had the WUNTRACED flag set.
stopsig - Returns the number of the signal that caused stat to stop (or nil if self is not stopped).
success? - Returns true if stat is successful, false if not. Returns nil if exited? is not true.
termsig - Returns the number of the signal that caused stat to terminate (or nil if self was not terminated by an uncaught signal).
to_i - Returns the bits in stat as a Fixnum. Poking around in these bits is platform dependent.
to_int - Returns the bits in stat as a Fixnum. Poking around in these bits is platform dependent.
to_s - Equivalent to stat.to_i.to_s.