err omit in getProcInodes
This commit is contained in:
parent
ae1481820a
commit
86af477d1a
|
@ -421,7 +421,7 @@ func getProcInodes(root string, pid int32, max int) (map[string][]inodeMap, erro
|
|||
defer f.Close()
|
||||
files, err := f.Readdir(max)
|
||||
if err != nil {
|
||||
return ret, nil
|
||||
return ret, err
|
||||
}
|
||||
for _, fd := range files {
|
||||
inodePath := fmt.Sprintf("%s/%d/fd/%s", root, pid, fd.Name())
|
||||
|
|
Loading…
Reference in New Issue