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.setgid
Process::Sys.setgid(group) → nil
process.c
View on GitHub ↗
static VALUE
p_sys_setgid(VALUE obj, VALUE id)
{
check_gid_switch();
if (setgid(OBJ2GID(id)) != 0) rb_sys_fail(0);
return Qnil;
}
Set the group ID of the current process to group. Not available on all platforms.