Merge pull request #395 from better88/patch-1
err omit in getProcInodes
This commit is contained in:
commit
53dcbf48b4
|
@ -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