Function nc::getpgrp[][src]

pub fn getpgrp() -> pid_t
Expand description

Get the process group ID of the calling process.

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