From 08ab36927d91063f4981162c15a8d610e73e4f3d Mon Sep 17 00:00:00 2001 From: William Wernert Date: Mon, 7 Dec 2020 14:16:54 -0500 Subject: [PATCH] [refactor] Kill parent script on exit --- setup/so-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index 38077269f..dffc52b4f 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1752,7 +1752,7 @@ set_main_ip() { This is not a supported configuration, please remediate and rerun setup. EOM whiptail --title "Security Onion Setup" --msgbox "$message" 10 75 - exit 1 + kill -SIGKILL "$(ps --pid $$ -oppid=)"; exit 1 fi }