We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Errno::EACCES
1 parent bca8a29 commit 34972b6Copy full SHA for 34972b6
lib/process/metrics/memory/linux.rb
@@ -71,8 +71,8 @@ def self.capture(pid, **options)
71
72
return usage
73
end
74
- rescue Errno::ENOENT, Errno::ESRCH
75
- # Process doesn't exist.
+ rescue Errno::ENOENT, Errno::ESRCH, Errno::EACCES
+ # Process doesn't exist or we can't access it.
76
return nil
77
78
elsif File.readable?("/proc/self/smaps")
@@ -105,8 +105,8 @@ def self.capture(pid, **options)
105
106
107
108
109
110
111
112
else
0 commit comments