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,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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue