2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 13:28:27 +00:00

rst: Introduce post-restore action

Useful to test restore time -- just abort restore with this
action and that's it.

Acked-by: Andrew Vagin <avagin@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2014-02-04 18:03:00 +04:00
parent 49b427b721
commit 74c3cc1996

View File

@ -1518,6 +1518,13 @@ static int restore_root_task(struct pstree_item *init)
timing_stop(TIME_RESTORE);
ret = run_scripts("post-restore");
if (ret != 0) {
pr_warn("Aborting restore due to script ret code %d\n", ret);
write_stats(RESTORE_STATS);
goto out_kill;
}
ret = attach_to_tasks();
pr_info("Restore finished successfully. Resuming tasks.\n");