summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-07-02 03:11:13 +0200
committerDave Reisner <dreisner@archlinux.org>2011-07-02 03:11:13 +0200
commitc46d8a260d276083092b4a46b049b6aa48a1fdbb (patch)
tree1064ffa7573da9a72aa2e1e1e83347bef63d4898 /functions
parent712b70757e272e5b41c07a17993ccbb43e7ff84c (diff)
downloadmkinitcpio-c46d8a260d276083092b4a46b049b6aa48a1fdbb.tar.gz
mkinitcpio-c46d8a260d276083092b4a46b049b6aa48a1fdbb.tar.xz
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 <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions3
1 files changed, 1 insertions, 2 deletions
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() {