From a8977a25d4f8615f5392e8e9007febd6a49a07a1 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Sun, 15 Feb 2026 10:46:21 +0100 Subject: [PATCH] fix(build): SIGINT/SIGTERM traps now exit properly - Add 'exit 130' after SIGINT trap handler - Add 'exit 143' after SIGTERM trap handler - Fixes issue where interrupted scripts stayed as 'Installing' in telemetry - Previously the traps only sent the update but didn't terminate the script --- misc/build.func | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/build.func b/misc/build.func index 478d5e573..bae2c95b9 100644 --- a/misc/build.func +++ b/misc/build.func @@ -5268,5 +5268,5 @@ if command -v pveversion >/dev/null 2>&1; then trap 'api_exit_script' EXIT fi trap 'ensure_log_on_host; post_update_to_api "failed" "$?"' ERR -trap 'ensure_log_on_host; post_update_to_api "failed" "130"' SIGINT -trap 'ensure_log_on_host; post_update_to_api "failed" "143"' SIGTERM +trap 'ensure_log_on_host; post_update_to_api "failed" "130"; exit 130' SIGINT +trap 'ensure_log_on_host; post_update_to_api "failed" "143"; exit 143' SIGTERM