getpgrp()
public
Show source
static VALUE
proc_getpgrp(void)
{
rb_pid_t pgrp;
rb_secure(2);
pgrp = getpgrp();
if (pgrp < 0) rb_sys_fail(0);
return PIDT2NUM(pgrp);
pgrp = getpgid(0);
if (pgrp < 0) rb_sys_fail(0);
return PIDT2NUM(pgrp);
rb_notimplement();
}