From b224603fea8d513175270db64fc40e067c13eef0 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 15 Sep 2017 19:59:42 +0200 Subject: [PATCH] small fix to orders.queue locking --- process/create-orders | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/process/create-orders b/process/create-orders index 7ddbde92e..b0ca292f4 100755 --- a/process/create-orders +++ b/process/create-orders @@ -18,10 +18,11 @@ else fi ls -1rt orders.dir.$TURN/turn-* | xargs cat > orders.$TURN +lockfile -r3 -l120 orders.queue.lock if [ -e orders.queue ] ; then - lockfile -r3 -l120 orders.queue.lock mv orders.queue orders.dir.$TURN/orders.queue - rm -f orders.queue.lock +fi +rm -f orders.queue.lock fi