From 70ae18fd1cff0c3ab9170a158018d5ab82e4799b Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Sun, 4 Nov 2018 18:48:01 +0900 Subject: [PATCH] fix bug with execute_the_command --- nohang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nohang b/nohang index 23e3f6f..7399390 100755 --- a/nohang +++ b/nohang @@ -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