APIdock / Ruby
/
method

setgid

ruby latest stable - Class: Process ::Sys
setgid(p1)
public

Set the group ID of the current process to group. Not available on all platforms.

static VALUE
p_sys_setgid(VALUE obj, VALUE id)
{
 check_gid_switch();
 if (setgid(OBJ2GID(id)) != 0) rb_sys_fail(0);
 return Qnil;
}

AltStyle によって変換されたページ (->オリジナル) /