more locking.

git-svn-id: file:///svn/unbound/trunk@1254 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2008-09-18 11:51:09 +00:00
parent a14c4fa6e5
commit 10316f091f

View file

@ -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