Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Mar 4, 2024
1 parent b9a17fd commit 9225dd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ fn build_inode_process_map(processes: Vec<Process>) -> HashMap<u64, PidName> {
.unwrap();
let mut dir = rustix::fs::Dir::read_from(&dir_fd).unwrap();
let mut socket_inodes = Vec::new();
println!("dir_fd: {:?}", dir_fd);
if let Some(Ok(entry)) = dir.next() {
let name = entry.file_name().to_string_lossy();
println!("\tfile name: {:?}", name);
Expand All @@ -110,6 +111,7 @@ fn build_inode_process_map(processes: Vec<Process>) -> HashMap<u64, PidName> {
}
}
if let Some(pid_name) = PidName::from_read(File::from(read)) {
println!("pid_name: {:?}", pid_name);
for inode in socket_inodes {
map.insert(inode, pid_name.clone());
}
Expand Down

0 comments on commit 9225dd9

Please sign in to comment.