pub unsafe fn getppid() -> i32 ⓘ
dep_nc
Get the process ID of the parent of the calling process.
let ppid = unsafe { nc::getppid() }; assert!(ppid > 0);