File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -94,16 +94,20 @@ fn build_inode_process_map(processes: Vec<Process>) -> HashMap<u64, PidName> {
94
94
let mut dir = rustix:: fs:: Dir :: read_from ( & dir_fd) . unwrap ( ) ;
95
95
let mut socket_inodes = Vec :: new ( ) ;
96
96
if let Some ( Ok ( entry) ) = dir. next ( ) {
97
+ println ! ( "A" ) ;
97
98
let name = entry. file_name ( ) . to_string_lossy ( ) ;
98
99
if let Ok ( fd) = RawFd :: from_str ( & name) {
100
+ println ! ( "B" ) ;
99
101
if let Some ( socket_inode) =
100
102
get_socket_inodes ( process. root , dir_fd. as_fd ( ) , name. as_ref ( ) , fd)
101
103
{
104
+ println ! ( "C" ) ;
102
105
socket_inodes. push ( socket_inode) ;
103
106
}
104
107
}
105
108
}
106
109
if let Some ( pid_name) = PidName :: from_read ( File :: from ( read) ) {
110
+ println ! ( "D" ) ;
107
111
for inode in socket_inodes {
108
112
map. insert ( inode, pid_name. clone ( ) ) ;
109
113
}
You can’t perform that action at this time.
0 commit comments