Skip to content
class method

Process.setsid

() -> ::Integer
Process.setsid → integer

Establishes the current process as a new session and process group leader, with no controlling tty; returns the session ID:

Example
Process.setsid # => 27422

Not available on all platforms.

See also .setrlimit .spawn .setproctitle .times also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0