Skip to content
Browse files

use lock file based on rootfs location and name

  • Loading branch information...
1 parent 2ef9afa commit 4ea5c6c4aac276511e39209930e5b77142f34a24 @tuxofil tuxofil committed Oct 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 yabs-worker.sh
View
2 yabs-worker.sh
@@ -42,7 +42,7 @@ set -x
## initialize rootfs...
mkdir --parents "$ROOTFS"
-LOCK=`dirname "$ROOTFS"`/yabs-lock
+LOCK=`dirname "$ROOTFS"`/`basename "$ROOTFS"`.lock
exec 3>"$LOCK"
echo "Waiting until lock will be released..."
flock --exclusive 3 || exit 1

0 comments on commit 4ea5c6c

Please sign in to comment.
Something went wrong with that request. Please try again.