processes: Don't return error if process exited (#1283)
This commit is contained in:
committed by
Cameron Sparr
parent
0ebf1c1ad7
commit
d5add07c0b
@@ -141,6 +141,9 @@ func (p *Processes) gatherFromProc(fields map[string]interface{}) error {
|
||||
statFile := path.Join("/proc", file.Name(), "stat")
|
||||
data, err := p.readProcFile(statFile)
|
||||
if err != nil {
|
||||
if !file.IsDir() {
|
||||
continue
|
||||
}
|
||||
return err
|
||||
}
|
||||
if data == nil {
|
||||
|
||||
Reference in New Issue
Block a user