End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Process::GID.rid
Process.gid → integer
Process::GID.rid → integer
Process::Sys.getgid → integer
process.c
View on GitHub ↗
static VALUE
proc_getgid(VALUE obj)
{
rb_gid_t gid = getgid();
return GIDT2NUM(gid);
}
Returns the (real) group ID for this process.
Example
Process.gid #=> 500
See also
.re_exchangeable?
.sid_available?
.re_exchange
.switch
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1