From 10316f091f0582d2cb6f35f6a6bd0937a77889f3 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 18 Sep 2008 11:51:09 +0000 Subject: [PATCH] more locking. git-svn-id: file:///svn/unbound/trunk@1254 be551aaa-1e26-0410-a405-d3ace91eadb9 --- contrib/unbound_munin_ | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/unbound_munin_ b/contrib/unbound_munin_ index a9c084a55..dd2bab737 100755 --- a/contrib/unbound_munin_ +++ b/contrib/unbound_munin_ @@ -125,7 +125,10 @@ get_state ( ) { while test -f $lock; do # wait i=`expr $i + 1` - if test $i -gt 100000; then + if test $i -gt 1000; then + sleep 1; + fi + if test $i -gt 1500; then echo "error locking $lock" "=" `cat $lock` rm -f $lock exit 1