Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

Process::Status#==

stat == other → true or false

Returns whether the value of to_i == other:

Example
`cat /nop`
stat = $?                # => #<Process::Status: pid 1170366 exit 1>
sprintf('%x', stat.to_i) # => "100"
stat == 0x100            # => true
See also #& #>> .wait #coredump? also in 4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0