/* * call-seq: * stat.exited? => true or false * * Returns +true+ if _stat_ exited normally (for * example using an <code>exit()</code> call or finishing the * program). */ static VALUE pst_wifexited(st) VALUE st; { int status = NUM2INT(st); if (WIFEXITED(status)) return Qtrue; else return Qfalse; }