class Process::Status

Ein Process::Status enthält Informationen über einen Systemprozess.

Die Thread-lokale Variable $? ist initial nil. Einige Methoden weisen ihr ein Process::Status-Objekt zu, das einen Systemprozess repräsentiert (entweder laufend oder beendet).

`ruby -e "exit 99"`
stat = $?       # => #<Process::Status: pid 1262862 exit 99>
stat.class      # => Process::Status
stat.to_i       # => 25344
stat.stopped?   # => false
stat.exited?    # => true
stat.exitstatus # => 99