pub fn sys_getppid(&self) -> SysResult {
        info!("getppid:");
        let proc = self.linux_process();
        let ppid = proc.parent().map(|p| p.id()).unwrap_or(0);
        Ok(ppid as usize)
    }
/// Get the parent process ID.
Get the parent process ID.
Get the parent process ID .
pub fn sys_getppid(&self) -> SysResult {
        info!("getppid:");
        let proc = self.linux_process();
        let ppid = proc.parent().map(|p| p.id()).unwrap_or(0);
        Ok(ppid as usize)
    }
pub fn sys_getppid ( & self ) -> SysResult { info ! ( " " ) ; let proc = self . linux_process ( ) ; let ppid = proc . parent ( ) . map ( | p | p . id ( ) ) . unwrap_or ( 0 ) ; Ok ( ppid as usize ) }
Get the parent process ID.
Get the parent process ID .
&self
&self