pub unsafe fn getpgrp() -> i32 ⓘ
dep_nc
Get the process group ID of the calling process.
let pgroup = unsafe { nc::getpgrp() }; assert!(pgroup > 0);