diff --git a/nohang/nohang b/nohang/nohang index d22e021..277f371 100755 --- a/nohang/nohang +++ b/nohang/nohang @@ -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():