Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Process::Status#stopsig
() -> ::Integer?
stopsig → integer or nil
process.c
View on GitHub ↗
static VALUE
pst_wstopsig(VALUE st)
{
int status = PST2INT(st);
if (WIFSTOPPED(status))
return INT2NUM(WSTOPSIG(status));
return Qnil;
}
Returns the number of the signal that caused the process to stop, or nil if the process is not stopped.