Function nc::getpgrp

source ·
pub unsafe fn getpgrp() -> pid_t
Expand description

Get the process group ID of the calling process.

§Example

let pgroup = unsafe { nc::getpgrp() };
assert!(pgroup > 0);