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> {
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 }
You can’t perform that action at this time.
0 commit comments