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