Fix PermissionError with hidepid=1 #88
This commit is contained in:
parent
b154dcca91
commit
a7c329971f
@ -25,7 +25,8 @@ def check_permissions():
|
|||||||
try:
|
try:
|
||||||
rline1('/proc/1/oom_score')
|
rline1('/proc/1/oom_score')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('WARNING: {}'.format(e))
|
print('ERROR: {}'.format(e))
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
def memload():
|
def memload():
|
||||||
@ -1535,6 +1536,8 @@ def is_alive(pid):
|
|||||||
return False
|
return False
|
||||||
except NotADirectoryError:
|
except NotADirectoryError:
|
||||||
return False
|
return False
|
||||||
|
except PermissionError:
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
def alive_pid_list():
|
def alive_pid_list():
|
||||||
|
Loading…
Reference in New Issue
Block a user