pid()
public
Returns the process id of this process. Not available on all platforms.
Process.pid
Show source
/*
* call-seq:
* Process.pid => fixnum
*
* Returns the process id of this process. Not available on all
* platforms.
*
* Process.pid #=> 27415
*/
static VALUE
get_pid()
{
rb_secure(2);
return INT2FIX(getpid());
}