[CRIU] [PATCH 5/7] lazy-dump: do not start page server if there were errors

Mike Rapoport rppt at linux.vnet.ibm.com
Sun Nov 20 01:50:04 PST 2016


Currently, lazy dump starts page server regardless of errors that might
have been encountered at earlier stages. Fix it.

Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
 criu/cr-dump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/cr-dump.c b/criu/cr-dump.c
index 468df01..9771600 100644
--- a/criu/cr-dump.c
+++ b/criu/cr-dump.c
@@ -1666,7 +1666,7 @@ static int cr_dump_finish(int ret)
 		clean_cr_time_mounts();
 	}
 
-	if (opts.lazy_pages)
+	if (!ret && opts.lazy_pages)
 		ret = cr_lazy_mem_dump();
 
 	pstree_switch_state(root_item,
-- 
1.9.1



More information about the CRIU mailing list