fix find_victim
This commit is contained in:
parent
f4b953612c
commit
424b1ba936
4
nohang
4
nohang
@ -612,18 +612,22 @@ def find_victim_and_send_signal(signal):
|
|||||||
oom_score_adj = rline1('/proc/' + pid + '/oom_score_adj')
|
oom_score_adj = rline1('/proc/' + pid + '/oom_score_adj')
|
||||||
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
print(mem_info)
|
||||||
print('The victim died in the search process')
|
print('The victim died in the search process')
|
||||||
update_stat_dict_and_print('The victim died in the search process')
|
update_stat_dict_and_print('The victim died in the search process')
|
||||||
return None
|
return None
|
||||||
except ProcessLookupError:
|
except ProcessLookupError:
|
||||||
|
print(mem_info)
|
||||||
print('The victim died in the search process')
|
print('The victim died in the search process')
|
||||||
update_stat_dict_and_print('The victim died in the search process')
|
update_stat_dict_and_print('The victim died in the search process')
|
||||||
return None
|
return None
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
print(mem_info)
|
||||||
print('The victim died in the search process')
|
print('The victim died in the search process')
|
||||||
update_stat_dict_and_print('The victim died in the search process')
|
update_stat_dict_and_print('The victim died in the search process')
|
||||||
return None
|
return None
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
print(mem_info)
|
||||||
print('The victim died in the search process')
|
print('The victim died in the search process')
|
||||||
update_stat_dict_and_print('The victim died in the search process')
|
update_stat_dict_and_print('The victim died in the search process')
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user