devela::_dep::rustix::process

Function getppid

pub fn getppid() -> Option<Pid> 
Available on crate feature dep_rustix only.
Expand description

getppid()—Returns the parent process’ ID.

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 an init process (PID 1).

§References