Function lrs::process::session

Get the session id of this or another process.

Syntax

fn session(pid: Option<i32>) -> Result<i32, Errno>

Arguments

NameDescription
pid

The process whose session id to return or None to get the session id of this process.

See also