Function nix::unistd::getsid
pub fn getsid(pid: Option<Pid>) -> Result<Pid>
The portability is definied by:
#[cfg(not(target_os = "redox"))]
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.