pub fn getpgrp() -> pid_t
Get the process group ID of the calling process.
let pgroup = nc::getpgrp(); assert!(pgroup > 0);