Merge pull request #395 from better88/patch-1

err omit in getProcInodes
This commit is contained in:
shirou 2017-07-10 16:47:42 +09:00 committed by GitHub
commit 53dcbf48b4
1 changed files with 1 additions and 1 deletions

View File

@ -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())