Get the process group of a process.
fn getpgid(pid: i32) -> i32
The process whose process group to return.
getpgid(2)