Commit 11e4ac09 by Eric Coissac

Add log when the lock or semaphore cannot be acquired

parent da12564f
Pipeline #10 skipped
......@@ -70,6 +70,7 @@ function getlock() {
fi
if (( notgetlock > 0 )); then
loginfo "Failed to get lock $name"
sleep "${LECA_LOCK_DELAY}"
retry=$((retry + 1))
fi
......@@ -160,6 +161,7 @@ function getsemaphore() {
done
if (( notgetlock > 0 )); then
loginfo "Failed to get semaphore $semname"
sleep "${LECA_LOCK_DELAY}"
retry=$((retry + 1))
fi
......
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