Function nc::getppid

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

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

§Example

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