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