proc_getter 0.0.3

make retriving infomations from /proc/* easier
Documentation
1
2
3
4
5
6
use crate::Result;
use std::path::PathBuf;

pub fn exe_of(pid: u32) -> Result<PathBuf> {
    Ok(std::fs::read_link(pid_path!(pid, "exe"))?)
}