diff options
author | Daniel Baumann <daniel@debian.org> | 2008-10-31 06:45:05 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:43 +0100 |
commit | 425f88e9ec5feed5fa323d3eb0176bf8b99b8da1 (patch) | |
tree | 0a03c0f90434c681d1505470a29052e82548d455 /functions | |
parent | 141b4f7e0fee8e848147dfe8def664cb46f1d00a (diff) | |
download | vyos-live-build-425f88e9ec5feed5fa323d3eb0176bf8b99b8da1.tar.gz vyos-live-build-425f88e9ec5feed5fa323d3eb0176bf8b99b8da1.zip |
Updating signals in exit and lockfile traps.
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/exit.sh | 2 | ||||
-rwxr-xr-x | functions/lockfile.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/functions/exit.sh b/functions/exit.sh index 022c0bf55..e7e7b1115 100755 --- a/functions/exit.sh +++ b/functions/exit.sh @@ -27,5 +27,5 @@ Exit () Setup_cleanup () { Echo_message "Setting up cleanup function" - trap 'Exit' INT TERM HUP EXIT + trap 'Exit' EXIT HUP INT QUIT TERM } diff --git a/functions/lockfile.sh b/functions/lockfile.sh index f486ec982..93da69e4d 100755 --- a/functions/lockfile.sh +++ b/functions/lockfile.sh @@ -28,7 +28,7 @@ Create_lockfile () mkdir -p "${DIRECTORY}" # Creating lock trap - trap 'ret=${?}; '"rm -f \"${FILE}\";"' exit ${ret}' EXIT + trap 'ret=${?}; '"rm -f \"${FILE}\";"' exit ${ret}' EXIT HUP INT QUIT TERM # Creating lock file touch "${FILE}" |