[CRIU] [PATCH 3/7] dump: pre-dump should never kill processes

Andrey Vagin avagin at openvz.org
Tue Mar 8 10:44:01 PST 2016


From: Andrei Vagin <avagin at openvz.org>

Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 criu/cr-dump.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/criu/cr-dump.c b/criu/cr-dump.c
index 1cb4608..01577fa 100644
--- a/criu/cr-dump.c
+++ b/criu/cr-dump.c
@@ -1418,8 +1418,7 @@ static int cr_pre_dump_finish(struct list_head *ctls, int ret)
 {
 	struct parasite_ctl *ctl, *n;
 
-	pstree_switch_state(root_item,
-			ret ? TASK_ALIVE : opts.final_state);
+	pstree_switch_state(root_item, TASK_ALIVE);
 	free_pstree(root_item);
 
 	timing_stop(TIME_FROZEN);
-- 
2.5.0



More information about the CRIU mailing list