summaryrefslogtreecommitdiff
path: root/bin/get-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-17 14:51:38 +0200
committerErich Eckner <git@eckner.net>2017-05-17 14:51:38 +0200
commitcd2540e6a7bcae913be1034d93c7dd2b9a9a704a (patch)
treec6ac39f2e67495ecaf325e381d98d77ec208d0b6 /bin/get-assignment
parentb5e64080699536e7802e1b3dd105032386573f63 (diff)
downloadbuilder-cd2540e6a7bcae913be1034d93c7dd2b9a9a704a.tar.xz
use a single lock file for the build list
Diffstat (limited to 'bin/get-assignment')
-rwxr-xr-xbin/get-assignment6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/get-assignment b/bin/get-assignment
index db9e2f4..091c634 100755
--- a/bin/get-assignment
+++ b/bin/get-assignment
@@ -45,14 +45,14 @@ hand_out_assignment() {
# Create a lock file and a trap.
-exec 9> "${lock_file}"
+exec 9> "${build_list_lock_file}"
if ! flock -n 9; then
- >&2 echo 'come back (shortly) later - I was running already'
+ >&2 echo 'come back (shortly) later - I cannot lock build list.'
exit 1
fi
function clean_up {
- rm -f "${lock_file}"
+ rm -f "${build_list_lock_file}"
}
trap clean_up EXIT