mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 06:45:35 +00:00
dump: return a negative value in case of error
Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
fa11d76cab
commit
32b5aa76e0
@@ -1394,6 +1394,7 @@ static int dump_one_task(const struct pstree_item *item)
|
|||||||
|
|
||||||
parasite_ctl = parasite_infect_seized(pid, &vma_area_list);
|
parasite_ctl = parasite_infect_seized(pid, &vma_area_list);
|
||||||
if (!parasite_ctl) {
|
if (!parasite_ctl) {
|
||||||
|
ret = -1;
|
||||||
pr_err("Can't infect (pid: %d) with parasite\n", pid);
|
pr_err("Can't infect (pid: %d) with parasite\n", pid);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user