Fix PermissionError with hidepid=1 #88 agin

This commit is contained in:
Alexey Avramov 2020-03-15 23:39:24 +09:00
parent a7c329971f
commit c70b8242d0

View File

@ -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)))