nix::unistd

Function getppid

source
pub fn getppid() -> Pid
Expand description

Get the pid of this processes’ parent (see getpid(2)).

There is always a parent pid to return, so there is no error case that needs to be handled.