From c70b8242d071d177a020177623386630b99d64fb Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Sun, 15 Mar 2020 23:39:24 +0900 Subject: [PATCH] Fix PermissionError with hidepid=1 #88 agin --- tools/oom-sort | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/oom-sort b/tools/oom-sort index ac9c8d9..4017256 100755 --- a/tools/oom-sort +++ b/tools/oom-sort @@ -178,6 +178,10 @@ for pid in listdir('/proc'): except ProcessLookupError: continue + except Exception as e: + print(e) + exit(1) + oom_list.append(( int(pid), int(oom_score), int(oom_score_adj), cmdline, name, int(uid), int(vm_rss), int(vm_swap)))