APIdock / Ruby
/
method

setpgid

ruby latest stable - Class: Process
setpgid(p1, p2)
public

Sets the process group ID of pid (0 indicates this process) to integer. Not available on all platforms.

static VALUE
proc_setpgid(VALUE obj, VALUE pid, VALUE pgrp)
{
 rb_pid_t ipid, ipgrp;
 ipid = NUM2PIDT(pid);
 ipgrp = NUM2PIDT(pgrp);
 if (setpgid(ipid, ipgrp) < 0) rb_sys_fail(0);
 return INT2FIX(0);
}

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