Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/seed-build-list
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-27 15:35:58 +0200
committerErich Eckner <git@eckner.net>2017-10-27 15:35:58 +0200
commit1c26d16709872f97dfce4615a31e472fa0afb3fb (patch)
treea71c15adfd6b11f7321d815a526cb00873509ffc /bin/seed-build-list
parent1dfef01eaa3913ae4281d40c1477a56143509f6b (diff)
add shared lock for sanity-check
Diffstat (limited to 'bin/seed-build-list')
-rwxr-xr-xbin/seed-build-list4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/seed-build-list b/bin/seed-build-list
index 6b40064..6490015 100755
--- a/bin/seed-build-list
+++ b/bin/seed-build-list
@@ -225,8 +225,12 @@ cut -d' ' -f1,4 < \
# Create a lock file for build list.
if ${update}; then
+ # always block if locked
exec 9> "${build_list_lock_file}"
flock 9
+
+ exec 8> "${sanity_check_lock_file}"
+ flock -s 8
fi
{