exited?()
Returns true if stat exited normally (for example using an exit() call or finishing the program).
static VALUE pst_wifexited(VALUE st) { int status = PST2INT(st); if (WIFEXITED(status)) return Qtrue; else return Qfalse; }