[CRIU] [PATCH cr 2/3] dump: return a negative value in case of error

Andrey Vagin avagin at openvz.org
Fri Apr 6 16:22:19 EDT 2012


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-dump.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/cr-dump.c b/cr-dump.c
index a240194..3453147 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1364,6 +1364,7 @@ static int dump_one_task(const struct pstree_item *item)
 
 	parasite_ctl = parasite_infect_seized(pid, &vma_area_list);
 	if (!parasite_ctl) {
+		ret = -1;
 		pr_err("Can't infect (pid: %d) with parasite\n", pid);
 		goto err;
 	}
-- 
1.7.1



More information about the CRIU mailing list