End of Life Ruby 3.0 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);
if (WIFEXITED(status))
return Qtrue;
else
return Qfalse;
}
Returns true if stat exited normally (for example using an exit() call or finishing the program).