Updating signals in exit and lockfile traps.

This commit is contained in:
Daniel Baumann 2008-10-31 06:45:05 +01:00
parent 141b4f7e0f
commit 425f88e9ec
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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}"