End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Process::Status#exited?
stat.exited? → true or false
process.c
View on GitHub ↗
static VALUE
pst_wifexited(VALUE st)
{
int status = PST2INT(st);
return RBOOL(WIFEXITED(status));
}
Returns true if stat exited normally (for example using an exit() call or finishing the program).