Function nc::getppid[][src]

pub fn getppid() -> pid_t
Expand description

Get the process ID of the parent of the calling process.

let ppid = nc::getppid();
assert!(ppid > 0);