forked from github/server
small fix to orders.queue locking
This commit is contained in:
parent
dc2663571c
commit
0ffb4e3ca9
|
@ -18,10 +18,11 @@ else
|
||||||
fi
|
fi
|
||||||
ls -1rt orders.dir.$TURN/turn-* | xargs cat > orders.$TURN
|
ls -1rt orders.dir.$TURN/turn-* | xargs cat > orders.$TURN
|
||||||
|
|
||||||
|
lockfile -r3 -l120 orders.queue.lock
|
||||||
if [ -e orders.queue ] ; then
|
if [ -e orders.queue ] ; then
|
||||||
lockfile -r3 -l120 orders.queue.lock
|
|
||||||
mv orders.queue orders.dir.$TURN/orders.queue
|
mv orders.queue orders.dir.$TURN/orders.queue
|
||||||
rm -f orders.queue.lock
|
fi
|
||||||
|
rm -f orders.queue.lock
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue