Merge pull request #549 from jpoimboe/trap-sighup

kpatch-build: cleanup on SIGHUP
This commit is contained in:
Seth Jennings 2015-11-16 09:49:21 -06:00
commit 232b2a108d

View File

@ -278,7 +278,7 @@ mkdir -p "$TEMPDIR" || die "Couldn't create $TEMPDIR"
rm -rf "$TEMPDIR"/* rm -rf "$TEMPDIR"/*
rm -f "$LOGFILE" rm -f "$LOGFILE"
trap cleanup EXIT INT TERM trap cleanup EXIT INT TERM HUP
KVER=${ARCHVERSION%%-*} KVER=${ARCHVERSION%%-*}
if [[ $ARCHVERSION =~ - ]]; then if [[ $ARCHVERSION =~ - ]]; then