From c46d8a260d276083092b4a46b049b6aa48a1fdbb Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 1 Jul 2011 21:11:13 -0400 Subject: always exit from cleanup There's no use case for us calling cleanup without exiting afterwards, so we can simplify all of our cleanup;exit; calls into just cleanup. This means our sighandler is no longer needed (it wasn't really, to begin with), but we split it up to make sure we exit with a posix-ish 128+signum exit value. Signed-off-by: Dave Reisner --- functions | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'functions') diff --git a/functions b/functions index 7dfec4c..93a5f7f 100644 --- a/functions +++ b/functions @@ -27,8 +27,7 @@ error() { die() { error "$@" - cleanup - exit 1 + cleanup 1 } get_dirname() { -- cgit v1.2.3-24-g4f1b