[][src]Function nix::unistd::getsid

pub fn getsid(pid: Option<Pid>) -> Result<Pid>

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.