Removing the unmounting of pseudo filesystems from the trap call, needs some other changes before it can safely be done.

This commit is contained in:
Daniel Baumann 2007-11-13 12:56:48 +01:00
parent 17e172bbdf
commit 9bb9d02995
1 changed files with 8 additions and 11 deletions

View File

@ -23,8 +23,6 @@ Check_lockfile ()
Create_lockfile ()
{
if [ "${LH_FORCE}" != "enabled" ]
then
FILE="${1}"
DIRECTORY="$(dirname ${1})"
@ -32,9 +30,8 @@ Create_lockfile ()
mkdir -p "${DIRECTORY}"
# Creating lock trap
trap 'ret=${?}; '"rm -f \"${FILE}\"; "'for FILESYSTEM in devpts proc sysfs; do lh_chroot_${FILESYSTEM} remove --force; done; exit ${ret}' EXIT
trap 'ret=${?}; '"rm -f \"${FILE}\";"' exit ${ret}' EXIT
# Creating lock file
touch "${FILE}"
fi
}