← All docs

posix_setsid()

Creates a new session and makes the current process its leader.

posix_setsid()

function posix_setsid(): int

Creates a new session and makes the current process its leader.

Parameters: none.

Returns: int

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how posix_setsid is implemented in the compiler, see the internals page.