pub fn setpgid(pid: i32, pgid: i32) -> SysResult<()>
Sets the process group ID (pgid) of the process specified by pid.
pgid
pid