pub fn getsid(pid: Option<Pid>) -> Result<Pid>
getsid(pid)—Get the session ID of the given process.
getsid(pid)