Merge pull request #37 from uglygus/master

Fixed PID re-use issue
This commit is contained in:
Laurent Cozic
2015-04-05 14:42:19 +02:00
+1 -1
View File
@@ -113,7 +113,7 @@ fi
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
if [ -f "$INPROGRESS_FILE" ]; then if [ -f "$INPROGRESS_FILE" ]; then
if pgrep -F "$INPROGRESS_FILE" > /dev/null 2>&1 ; then if pgrep -F "$INPROGRESS_FILE" "$APPNAME"> /dev/null 2>&1 ; then
fn_log_error "Previous backup task is still active - aborting." fn_log_error "Previous backup task is still active - aborting."
exit 1 exit 1
fi fi