pub fn getpgid(pid: Option<Pid>) -> Result<Pid>
getpgid(pid)—Returns the process group ID of the given process.
getpgid(pid)