summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbackup.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup.in b/backup.in
index ca4c1ae..7497be4 100755
--- a/backup.in
+++ b/backup.in
@@ -150,7 +150,7 @@ if ${seldom}; then
fi
done
fi
-[ -e "${pidFile}" ] && exit 5
+[ -s "${pidFile}" ] && kill -0 $(cat "${pidFile}") 2>/dev/null && exit 5
echo $$ > "${pidFile}"