Function nix::unistd::getpgrp

pub fn getpgrp() -> Pid
Documentation

Get the group id of the calling process (see getpgrp(3)).

Get the process group id (PGID) of the calling process. According to the man page it is always successful.