summaryrefslogtreecommitdiff
path: root/bin/bbackupd
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-07-02 17:50:46 +0000
committerChris Wilson <chris+github@qwirx.com>2008-07-02 17:50:46 +0000
commit914a6a28decaa32c7e672b52e45b5639abe1fd2d (patch)
treec5abb0ad68c11049785f715831aa3e4d995cd47e /bin/bbackupd
parent3fc1834adcc989989730d9dd57a58bff31f2a71f (diff)
Add missing #include, thanks to Alex Howansky.
Reset notification state for backup-error after a successful backup, thanks to Wolfgang Trexler.
Diffstat (limited to 'bin/bbackupd')
-rw-r--r--bin/bbackupd/BackupDaemon.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp
index 8f68ff1a..ad8d2868 100644
--- a/bin/bbackupd/BackupDaemon.cpp
+++ b/bin/bbackupd/BackupDaemon.cpp
@@ -10,6 +10,7 @@
#include "Box.h"
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
@@ -888,7 +889,8 @@ void BackupDaemon::Run2()
}
else
{
- // Unset the read error flag, so the // error is reported again if it
+ // Unset the read error flag, so the
+ // error is reported again if it
// happens again
mNotificationsSent[NotifyEvent_ReadError] = false;
}
@@ -1014,6 +1016,13 @@ void BackupDaemon::Run2()
doSyncForcedByPreviousSyncError = true;
}
}
+ else
+ {
+ // Unset the read error flag, so the
+ // error is reported again if it
+ // happens again
+ mNotificationsSent[NotifyEvent_BackupError] = false;
+ }
// Log the stats
BOX_NOTICE("File statistics: total file size uploaded "