Commit 32262340 authored by Mike Hibler's avatar Mike Hibler

Attempt to hack around occasional sync client failures on plab

parent 3e8e0b63
......@@ -237,8 +237,19 @@ barrier_wait()
sync_timeout $SYNCTIMO $SYNC -n $BARRIER -i $WAITERS
_rval=$?
else
$SYNC -n $BARRIER
_rval=$?
#
# XXX on planetlab, lookup of the syncserver name can
# fail transiently. Try a couple more times, waiting in between.
#
for i in 1 2 3; do
$SYNC -n $BARRIER
_rval=$?
if [ $_rval -ne 68 ]; then
break
fi
echo "sync on $BARRIER failed, trying again..."
sleep 10
done
fi
return $_rval
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment