Method: Process::Status#exited?

Defined in:
process.c

#exited?Boolean

Returns true if the process exited normally (for example using an exit() call or finishing the program), false if not.

Returns:

  • (Boolean)


1061
1062
1063
1064
1065
1066
1067
# File 'process.c', line 1061

static VALUE
pst_wifexited(VALUE st)
{
    int status = PST2INT(st);

    return RBOOL(WIFEXITED(status));
}