Function nix::unistd::getsid

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

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.