From 424b1ba936cc158c5086ce7e912d34369bc4e99a Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Fri, 11 Jan 2019 13:10:39 +0900 Subject: [PATCH] fix find_victim --- nohang | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nohang b/nohang index 7c2bdaa..cb62aa8 100755 --- a/nohang +++ b/nohang @@ -612,18 +612,22 @@ def find_victim_and_send_signal(signal): oom_score_adj = rline1('/proc/' + pid + '/oom_score_adj') except FileNotFoundError: + print(mem_info) print('The victim died in the search process') update_stat_dict_and_print('The victim died in the search process') return None except ProcessLookupError: + print(mem_info) print('The victim died in the search process') update_stat_dict_and_print('The victim died in the search process') return None except IndexError: + print(mem_info) print('The victim died in the search process') update_stat_dict_and_print('The victim died in the search process') return None except ValueError: + print(mem_info) print('The victim died in the search process') update_stat_dict_and_print('The victim died in the search process') return None