End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Process::Status#termsig
stat.termsig → integer or nil
process.c
View on GitHub ↗
static VALUE
pst_wtermsig(VALUE st)
{
int status = PST2INT(st);
if (WIFSIGNALED(status))
return INT2NUM(WTERMSIG(status));
return Qnil;
}
Returns the number of the signal that caused stat to terminate (or nil if self was not terminated by an uncaught signal).