Merge pull request #2478 from kolyshkin/get-pids

libct/cgroups/readProcsFile: return an error if read failed
This commit is contained in:
Mrunal Patel 2020-06-18 16:02:08 -07:00 committed by GitHub
commit 819c40b34f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ func readProcsFile(file string) ([]int, error) {
out = append(out, pid)
}
}
return out, nil
return out, s.Err()
}
// ParseCgroupFile parses the given cgroup file, typically /proc/self/cgroup