summaryrefslogtreecommitdiff
path: root/accel-pppd/backup/backup.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/backup/backup.c')
-rw-r--r--accel-pppd/backup/backup.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/accel-pppd/backup/backup.c b/accel-pppd/backup/backup.c
index d045f0cf..16349fc7 100644
--- a/accel-pppd/backup/backup.c
+++ b/accel-pppd/backup/backup.c
@@ -2,6 +2,7 @@
#include <string.h>
#include "triton.h"
+#include "log.h"
#include "events.h"
#include "ap_session.h"
#include "backup.h"
@@ -184,6 +185,8 @@ static void __restore_session(struct ap_session *ses)
}
}
+ log_ppp_info1("session restored\n");
+
if (ctrl)
ctrl->ctrl_start(ses);
else {
@@ -235,11 +238,17 @@ void backup_restore_fd()
void backup_restore(int internal)
{
struct backup_storage *storage;
+ struct backup_module *module;
list_for_each_entry(storage, &storage_list, entry) {
if (storage->restore)
storage->restore(internal);
}
+
+ list_for_each_entry(module, &module_list, entry) {
+ if (module->restore_complete)
+ module->restore_complete();
+ }
}
#endif