Skip to main content

getppid

Function getppid 

Source
pub unsafe fn getppid() -> pid_t
Expand description

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

ยงExamples

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