diff --git a/nohang b/nohang index 038d9ef..9b652f4 100755 --- a/nohang +++ b/nohang @@ -86,6 +86,9 @@ print_proc_table = False min_mem_report_interval = 5 +post_kill_exe = '' + + ########################################################################## # define functions @@ -942,6 +945,17 @@ def find_victim_and_send_signal(signal): key = 'Send {} to {}'.format( sig_dict[signal], name) + + if signal is SIGKILL and post_kill_exe != '': + os.system( + post_kill_exe.replace( + '$PID', pid).replace( + '$NAME', pid_to_name(pid) + ) + ) + + + if gui_notifications: send_notify(signal, name, pid)