pub fn read_limits(pid: i32) -> Result<Limits>
Read /proc/<pid>/limits and extract the “Max open files” limits.
/proc/<pid>/limits