nc::call
pub fn getpgid(pid: pid_t) -> Result<pid_t, Errno>
Returns the PGID(process group ID) of the process specified by pid.
pid