From 08a20c74d042f420bca23fdf63067731b913adfb Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Thu, 9 Aug 2018 04:10:05 +0900 Subject: [PATCH] minor fix --- nohang | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/nohang b/nohang index 392462a..fdfccf8 100755 --- a/nohang +++ b/nohang @@ -13,12 +13,6 @@ from sys import stdout sig_dict = {signal.SIGKILL: 'SIGKILL', signal.SIGTERM: 'SIGTERM'} - -# спрятать в туда, где включены уведомления -notify_sig_dict = {signal.SIGKILL: 'Killing', - signal.SIGTERM: 'Terminating'} - - # directory where the script is running cd = os.getcwd() @@ -1258,6 +1252,9 @@ mem_len = len(str(round(mem_total / 1024.0))) if gui_notifications or gui_low_memory_warnings: from subprocess import Popen, PIPE + notify_sig_dict = {signal.SIGKILL: 'Killing', + signal.SIGTERM: 'Terminating'} + if regex_matching: from re import fullmatch