Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Process::Status#termsig
() -> ::Integer?
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 the process to terminate or nil if the process was not terminated by an uncaught signal.