Function nix::unistd::getsid [−][src]
pub fn getsid(pid: Option<Pid>) -> Result<Pid>
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.