]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
more locking.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 18 Sep 2008 11:51:09 +0000 (11:51 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 18 Sep 2008 11:51:09 +0000 (11:51 +0000)
git-svn-id: file:///svn/unbound/trunk@1254 be551aaa-1e26-0410-a405-d3ace91eadb9

contrib/unbound_munin_

index a9c084a55d4a85552cd64c81375cffcdd1a1a529..dd2bab737c89ac5128b76b791a7b3ca3c7c847d3 100755 (executable)
@@ -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