pub fn getppid() -> Option<Pid>
process
getppid()—Returns the parent process’ ID.
getppid()
This will return None if the current process has no parent (or no parent accessible in the current PID namespace), such as if the current process is the init process (Pid::INIT).
None
Pid::INIT