devela::_dep::nc::call

Function getpgrp

pub unsafe fn getpgrp() -> i32 
Available on crate feature dep_nc only.
Expand description

Get the process group ID of the calling process.

§Examples

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