fix bug with execute_the_command

This commit is contained in:
Alexey Avramov 2018-11-04 18:48:01 +09:00
parent bf2dd502c5
commit 70ae18fd1c

2
nohang
View File

@ -360,7 +360,7 @@ def find_victim_and_send_signal(signal):
vm_rss = 0
vm_swap = 0
if name in etc_dict and signal is signal.SIGTERM:
if execute_the_command and signal is signal.SIGTERM and name in etc_dict:
command = etc_dict[name]
exit_status = os.system(etc_dict[name])
response_time = time() - time0