Handle vanishing PIDs (#1043)
PIDs can vanish (exit) from /proc/ between gathering the list of PIDs and getting all of their stats. * Ignore file not found errors. * Explicitly count the PIDs we find. * Cleanup some error style issues. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
099c1527f1
commit
fe5a117831
3 changed files with 15 additions and 5 deletions
0
collector/fixtures/proc/11/.missing_stat
Normal file
0
collector/fixtures/proc/11/.missing_stat
Normal file
Loading…
Add table
Add a link
Reference in a new issue