Method: Process::Status#stopped?

Defined in:
process.c

#stopped?Boolean

Returns true if this process is stopped, and if the corresponding #wait call had the Process::WUNTRACED flag set, false otherwise.

Returns:

  • (Boolean)


988
989
990
991
992
993
994
# File 'process.c', line 988

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

    return RBOOL(WIFSTOPPED(status));
}