summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-15 11:04:42 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-15 11:04:42 -0600
commita7587c1289f41d9bed47939780b7e8252000211e (patch)
tree0274265f923f8c6e90416bcce3be94a0cd3dbfdc /makechrootpkg.in
parenteba252eca59c3d110e90c97d114bacceca343426 (diff)
downloaddevtools-a7587c1289f41d9bed47939780b7e8252000211e.tar.xz
redo the lock functions to not append .lock
mkarchroot.in didn't need modified because it already (incorrectly) had .lock in the filename
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 0164754..a0941b4 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -121,13 +121,13 @@ chroottype=$(stat -f -c %T "$chrootdir")
# Lock the chroot we want to use. We'll keep this lock until we exit.
# Note this is the same FD number as in mkarchroot
-lock_open_write 9 "$copydir" \
+lock_open_write 9 "$copydir.lock" \
"Waiting for existing lock on chroot copy to be released: [$copy]"
if [[ ! -d $copydir ]] || $clean_first; then
# Get a read lock on the root chroot to make
# sure we don't clone a half-updated chroot
- lock_open_read 8 "$chrootdir/root" \
+ lock_open_read 8 "$chrootdir/root.lock" \
"Waiting for existing lock on clean chroot to be released"
stat_busy "Creating clean working copy [$copy]"