summaryrefslogtreecommitdiff
path: root/functions/lockfile.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-10-31 06:45:05 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:43 +0100
commit425f88e9ec5feed5fa323d3eb0176bf8b99b8da1 (patch)
tree0a03c0f90434c681d1505470a29052e82548d455 /functions/lockfile.sh
parent141b4f7e0fee8e848147dfe8def664cb46f1d00a (diff)
downloadvyos-live-build-425f88e9ec5feed5fa323d3eb0176bf8b99b8da1.tar.gz
vyos-live-build-425f88e9ec5feed5fa323d3eb0176bf8b99b8da1.zip
Updating signals in exit and lockfile traps.
Diffstat (limited to 'functions/lockfile.sh')
-rwxr-xr-xfunctions/lockfile.sh2
1 files changed, 1 insertions, 1 deletions
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}"