pub unsafe fn getsid(pid: pid_t) -> Result<pid_t>
Get the session ID of a process, or of the current process if pid is zero.
pid