mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 08:45:49 +00:00
proc: Make parse_maps return the amount of them found
Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
e94c85fe6e
commit
fc225709b0
@@ -75,12 +75,13 @@ static int collect_mappings(pid_t pid, struct list_head *vma_area_list)
|
||||
pr_info("----------------------------------------\n");
|
||||
|
||||
ret = parse_maps(pid, vma_area_list, true);
|
||||
if (ret)
|
||||
if (ret < 0)
|
||||
goto err;
|
||||
|
||||
pr_info_vma_list(vma_area_list);
|
||||
|
||||
pr_info("----------------------------------------\n");
|
||||
ret = 0;
|
||||
|
||||
err:
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user