Method: Process::Status#success?
- Defined in:
- process.c
#success? ⇒ true, ...
Returns:
-
trueif the process has completed successfully and exited. -
falseif the process has completed unsuccessfully and exited. -
nilif the process has not exited.
1106 1107 1108 1109 1110 1111 1112 1113 1114 |
# File 'process.c', line 1106 static VALUE pst_success_p(VALUE st) { int status = PST2INT(st); if (!WIFEXITED(status)) return Qnil; return RBOOL(WEXITSTATUS(status) == EXIT_SUCCESS); } |