Skip to content
Commits on Source (2)
......@@ -123,7 +123,7 @@ function lock() {
TIME=300
fi
# Now try to get the lock
flock ${flockparm} --timeout ${TIME} LOCKFD[${LOCK}]
flock ${flockparm} --timeout ${TIME} ${LOCKFD[${LOCK}]}
}
function unlock() {
......@@ -149,7 +149,7 @@ function unlock() {
fi
# Where we store lockfile filehandles
declare -a LOCKFD
declare -A LOCKFD
# common functions are "outsourced"
. "${configdir}/common"
......