/// Returns a `Process` for the currently running process.
///
/// This is done by using the `/proc/self` symlink
Returns a `Process` for the currently running process.
This is done by using the `/proc/self` symlink
Returns a ` Process ` for the currently running process . This is done by using the ` / proc / self ` symlink
pub fn myself() -> ProcResult<Process> {
        let root = PathBuf::from("/proc/self");
        let stat = Stat::from_reader(proctry!(File::open(root.join("stat")))).unwrap();
        let md = proctry!(std::fs::metadata(&root));
        ProcResult::Ok(Process {
            root,
            stat,
            owner: md.st_uid(),
        })
    }
pub fn myself ( ) -> ProcResult < Process > { let root = PathBuf :: from ( " " ) ; let stat = Stat :: from_reader ( proctry ! ( File open ( root join ( " " ) ) ) ) . unwrap ( ) ; let md = proctry ! ( std fs metadata ( root ) ) ; ProcResult :: Ok ( Process { root , stat , owner : md . st_uid ( ) , } ) }
Returns a `Process` for the currently running process.
Returns a ` Process ` for the currently running process .