We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb4937a commit fdfb660Copy full SHA for fdfb660
1 file changed
internal/ptree/ptree.go
@@ -24,6 +24,10 @@ var (
24
func GetProcessRSSAnon(pid int) (uint64, error) {
25
status := fmt.Sprintf("%d/status", pid)
26
f, err := procfs.Open(status)
27
+ if os.IsNotExist(err) {
28
+ // process is already gone
29
+ return 0, nil
30
+ }
31
if err != nil {
32
return 0, err
33
}
0 commit comments