From 48a149a1d06c495f6990cf7d19fc80da393a18c9 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 1 Oct 2020 19:29:30 -0700 Subject: [PATCH] jobd/update.sh: make sure to cleanup on bang failure Add a definition for `bang_exit` that calls `cleanup_exit` to make sure that any "bang" failure properly cleans up. Signed-off-by: Kyle J. McKay --- jobd/update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/jobd/update.sh b/jobd/update.sh index fa1f5d7..0f0ce2d 100755 --- a/jobd/update.sh +++ b/jobd/update.sh @@ -255,6 +255,7 @@ cleanup_exit() { [ -z "$bang_log" ] || rm -f "$bang_log" [ -z "$lockf" ] || rm -f "$lockf" } +bang_exit() { cleanup_exit; } trap 'cleanup_exit' EXIT trap 'exit 129' HUP trap 'exit 130' INT -- 2.11.4.GIT