lockfile -l acts weird - Do not use it. Add some logging for the HTTP hijack test

This commit is contained in:
Alter Step
2014-04-28 18:53:28 -07:00
parent fb416bf21e
commit 89e8c923fa
4 changed files with 10 additions and 4 deletions
@@ -62,7 +62,7 @@ logger_debug() {
[ -f "$DEBUG_ENABLED_FILE" ] || return
local msg="$1"
local now="$(date)"
lockfile "$DEBUG_LOG_FILE_LOCK" -1 -r 1 -l 5
lockfile -1 -r 1 "$DEBUG_LOG_FILE_LOCK"
echo "$now - $msg" >> "$DEBUG_LOG_FILE"
rm -f "$DEBUG_LOG_FILE_LOCK"
}