pid()
public
Returns the process ID that this status object represents.
fork { exit }
Process.wait
$?.pid
Show source
/*
* call-seq:
* stat.pid => fixnum
*
* Returns the process ID that this status object represents.
*
* fork { exit } #=> 26569
* Process.wait #=> 26569
* $?.pid #=> 26569
*/
static VALUE
pst_pid(st)
VALUE st;
{
return rb_iv_get(st, "pid");
}