setsid()
public
Establishes this process as a new session and process group leader, with no
controlling tty. Returns the session id. Not available on all platforms.
Process.setsid
Show source
static VALUE
proc_setsid(void)
{
rb_pid_t pid;
pid = setsid();
if (pid < 0) rb_sys_fail(0);
return PIDT2NUM(pid);
}