From 0be03e8056755deaaf1492fa1df38907eade690e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 25 May 2018 09:07:39 +0200 Subject: verbose_flock new: it calls flock and reports about blocking processes on error --- bin/build-packages | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/build-packages') diff --git a/bin/build-packages b/bin/build-packages index c6f912c..3d5d2d1 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -282,7 +282,7 @@ while [ "${count}" -ne 0 ] && \ # we get a lock on "${work_dir}/ping-build-master.lock", # if we release that lock, ping-to-master should stop _immediately_ exec 9> "${work_dir}/ping-build-master.lock" - if ! flock -n 9; then + if ! verbose_flock -n 9; then >&2 echo 'ERROR: Cannot lock ping-to-master - this should not happen.' exit 2 fi -- cgit v1.2.3-70-g09d2