Fix PermissionError with hidepid=1 #88
This commit is contained in:
parent
b154dcca91
commit
a7c329971f
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user