Commit a6748591 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

dump: Don't loose dump_namespaces error

In case if dump_namespaces failed we may have
ret shadowed and erroneously report checkpoint
success.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 553dd546
......@@ -1842,9 +1842,11 @@ int cr_dump_tasks(pid_t pid)
if (ret)
goto err;
if (root_ns_mask)
if (dump_namespaces(root_item, root_ns_mask) < 0)
if (root_ns_mask) {
ret = dump_namespaces(root_item, root_ns_mask);
if (ret)
goto err;
}
ret = dump_cgroups();
if (ret)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment