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:
parent
17e172bbdf
commit
9bb9d02995
|
@ -23,18 +23,15 @@ Check_lockfile ()
|
||||||
|
|
||||||
Create_lockfile ()
|
Create_lockfile ()
|
||||||
{
|
{
|
||||||
if [ "${LH_FORCE}" != "enabled" ]
|
FILE="${1}"
|
||||||
then
|
DIRECTORY="$(dirname ${1})"
|
||||||
FILE="${1}"
|
|
||||||
DIRECTORY="$(dirname ${1})"
|
|
||||||
|
|
||||||
# Creating lock directory
|
# Creating lock directory
|
||||||
mkdir -p "${DIRECTORY}"
|
mkdir -p "${DIRECTORY}"
|
||||||
|
|
||||||
# Creating lock trap
|
# 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
|
# Creating lock file
|
||||||
touch "${FILE}"
|
touch "${FILE}"
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue