Function lrs::process::new_session

Creates a new session.

Syntax

fn new_session() -> Result<i32, Errno>

Return value

Returns the session id of the new session.

Remarks

This fails if the current process is already a group leader.

See also