mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-07 15:29:36 -05:00
more locking.
git-svn-id: file:///svn/unbound/trunk@1254 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
a14c4fa6e5
commit
10316f091f
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue