Method: Process::Status#pid

Defined in:
process.c

#pidInteger

Returns the process ID of the process:

system("false")
$?.pid # => 1247002

Returns:



745
746
747
748
749
750
# File 'process.c', line 745

static VALUE
pst_pid_m(VALUE self)
{
    rb_pid_t pid = pst_pid(self);
    return PIDT2NUM(pid);
}