Skip to content

Commit 2c8991f

Browse files
committed
debug
1 parent a5b26ab commit 2c8991f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/platform/linux.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,20 @@ fn build_inode_process_map(processes: Vec<Process>) -> HashMap<u64, PidName> {
9494
let mut dir = rustix::fs::Dir::read_from(&dir_fd).unwrap();
9595
let mut socket_inodes = Vec::new();
9696
if let Some(Ok(entry)) = dir.next() {
97+
println!("A");
9798
let name = entry.file_name().to_string_lossy();
9899
if let Ok(fd) = RawFd::from_str(&name) {
100+
println!("B");
99101
if let Some(socket_inode) =
100102
get_socket_inodes(process.root, dir_fd.as_fd(), name.as_ref(), fd)
101103
{
104+
println!("C");
102105
socket_inodes.push(socket_inode);
103106
}
104107
}
105108
}
106109
if let Some(pid_name) = PidName::from_read(File::from(read)) {
110+
println!("D");
107111
for inode in socket_inodes {
108112
map.insert(inode, pid_name.clone());
109113
}

0 commit comments

Comments
 (0)