setregid(p1, p2)
public
Sets the (integer) real and/or effective group IDs of the current process
to rid and eid, respectively. A value of -1 for
either means to leave that ID unchanged. Not available on all platforms.
Show source
/*
* call-seq:
* Process::Sys.setregid(rid, eid) => nil
*
* Sets the (integer) real and/or effective group IDs of the current
* process to <em>rid</em> and <em>eid</em>, respectively. A value of
* <code>-1</code> for either means to leave that ID unchanged. Not
* available on all platforms.
*
*/
static VALUE
p_sys_setregid(obj, rid, eid)
VALUE obj, rid, eid;
{
check_gid_switch();
if (setregid(NUM2INT(rid),NUM2INT(eid)) != 0) rb_sys_fail(0);
rb_notimplement();
return Qnil;
}