End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Process::Sys.setrgid
Process::Sys.setrgid(group) → nil
process.c
View on GitHub ↗
static VALUE
p_sys_setrgid(VALUE obj, VALUE id)
{
check_gid_switch();
if (setrgid(OBJ2GID(id)) != 0) rb_sys_fail(0);
return Qnil;
}
Set the real group ID of the calling process to group. Not available on all platforms.