Fix PermissionError with hidepid=1 #88

This commit is contained in:
Alexey Avramov 2020-03-15 22:59:43 +09:00
parent b154dcca91
commit a7c329971f

View File

@ -25,7 +25,8 @@ def check_permissions():
try:
rline1('/proc/1/oom_score')
except Exception as e:
print('WARNING: {}'.format(e))
print('ERROR: {}'.format(e))
exit(1)
def memload():
@ -1535,6 +1536,8 @@ def is_alive(pid):
return False
except NotADirectoryError:
return False
except PermissionError:
return False
def alive_pid_list():