pub fn getsid(pid: Option<Pid>) -> Result<Pid>
Available on crate feature
process
only.Expand description
Get the process group ID of a session leader getsid(2).
Obtain the process group ID of the process that is the session leader of the process specified by pid. If pid is zero, it specifies the calling process.