[CRIU] [PATCH] pre-dump: do not disconnect from page server before writing to it
Jamie Liu
jamieliu at google.com
Thu Oct 10 11:11:19 PDT 2013
Signed-off-by: Jamie Liu <jamieliu at google.com>
---
cr-dump.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cr-dump.c b/cr-dump.c
index 4606bda..1106e31 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1613,9 +1613,6 @@ int cr_pre_dump_tasks(pid_t pid)
ret = 0;
err:
- if (disconnect_from_page_server())
- ret = -1;
-
pstree_switch_state(root_item,
ret ? TASK_ALIVE : opts.final_state);
free_pstree(root_item);
@@ -1642,6 +1639,9 @@ err:
parasite_cure_local(ctl);
}
+ if (disconnect_from_page_server())
+ ret = -1;
+
if (ret)
pr_err("Pre-dumping FAILED.\n");
else {
--
1.8.4
More information about the CRIU
mailing list