method
setsid
ruby latest stable - Class:
Process
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 #=> 27422
static VALUE
proc_setsid(void)
{
rb_pid_t pid;
pid = setsid();
if (pid < 0) rb_sys_fail(0);
return PIDT2NUM(pid);
}