Incorrect use of the function log().

This commit is contained in:
Laurent Rineau 2010-06-17 09:39:06 +00:00
parent 680ae36873
commit 034ced5cc3
1 changed files with 2 additions and 2 deletions

View File

@ -867,14 +867,14 @@ lockfile -r 1 "$LOCK_FILE";
if [ ${?} != 0 ]; then
PID=`cat "$LOCK_FILE"`
if kill -0 "$PID"; then
log "COULD NOT AQUIRE LOCK! LOCKING PROCESS PID=$PID";
log "${ACTUAL_LOGFILE}" "COULD NOT AQUIRE LOCK! LOCKING PROCESS PID=$PID";
exit 1;
else
# The locking process has died without erasing the lock file
rm -f "$LOCK_FILE"
lockfile -r 1 "$LOCK_FILE";
if [ ${?} != 0 ]; then
log "COULD NOT AQUIRE LOCK!";
log "${ACTUAL_LOGFILE}" "COULD NOT AQUIRE LOCK!";
exit 1
fi
fi