termsig()
public
Returns the number of the signal that caused stat to terminate (or
nil if self was not terminated by an uncaught signal).
Show source
static VALUE
pst_wtermsig(VALUE st)
{
int status = PST2INT(st);
if (WIFSIGNALED(status))
return INT2NUM(WTERMSIG(status));
return Qnil;
}