stat.exitstatus â fixnum or nil
Instance Public methods
Returns the least significant eight bits of the return code of
stat. Only available if exited? is true.
fork { } #=> 26572
Process.wait #=> 26572
$?.exited? #=> true
$?.exitstatus #=> 0
fork { exit 99 } #=> 26573
Process.wait #=> 26573
$?.exited? #=> true
$?.exitstatus #=> 99
Please login to continue.