Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Process.pid
() -> ::Integer
Process.pid → integer
process.c
View on GitHub ↗
static VALUE
proc_get_pid(VALUE _)
{
return get_pid();
}
Returns the process ID of the current process:
Example
Process.pid # => 15668