From 74a5575d5a03a2897f10f207bf1c6acd00b30f6b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 11 Nov 2007 10:15:51 +0100 Subject: Fixing trap call as suggested by Justin Pryzby (Closes: #431160, #449087). --- functions/lockfile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/lockfile.sh b/functions/lockfile.sh index 1850308..189d0c2 100755 --- a/functions/lockfile.sh +++ b/functions/lockfile.sh @@ -30,7 +30,7 @@ Create_lockfile () mkdir -p "${DIRECTORY}" # Creating lock trap - trap "test -f ${FILE} && rm -f ${FILE}; exit 0" 0 1 2 3 9 15 + trap 'ret=${?}; '"rm -f \"${FILE}\";"' exit ${ret}' EXIT # Creating lock file touch "${FILE}" -- cgit v1.0