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,18 +23,15 @@ Check_lockfile ()
Create_lockfile ()
{
if [ "${LH_FORCE}" != "enabled" ]
then
FILE="${1}"
DIRECTORY="$(dirname ${1})"
FILE="${1}"
DIRECTORY="$(dirname ${1})"
# Creating lock directory
mkdir -p "${DIRECTORY}"
# Creating lock directory
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
# Creating lock trap
trap 'ret=${?}; '"rm -f \"${FILE}\";"' exit ${ret}' EXIT
# Creating lock file
touch "${FILE}"
fi
# Creating lock file
touch "${FILE}"
}