Function nc::getpgid [−][src]
pub fn getpgid(pid: pid_t) -> Result<pid_t, Errno>
Expand description
Returns the PGID(process group ID) of the process specified by pid
.
let ppid = nc::getppid(); let pgid = nc::getpgid(ppid); assert!(pgid.is_ok());