Commit c48bcbdb authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

dump: move check_xids to dump_pstree

because in collect_pstree we don't know pid-s of processes inside pidns
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 20d2c780
...@@ -1409,9 +1409,6 @@ try_again: ...@@ -1409,9 +1409,6 @@ try_again:
free_pstree(root_item); free_pstree(root_item);
} }
if (!ret)
ret = check_xids(root_item);
return ret; return ret;
} }
...@@ -1426,6 +1423,10 @@ static int dump_pstree(struct pstree_item *root_item) ...@@ -1426,6 +1423,10 @@ static int dump_pstree(struct pstree_item *root_item)
pr_info("Dumping pstree (pid: %d)\n", root_item->pid.real_pid); pr_info("Dumping pstree (pid: %d)\n", root_item->pid.real_pid);
pr_info("----------------------------------------\n"); pr_info("----------------------------------------\n");
ret = check_xids(root_item);
if (ret)
return -1;
pstree_fd = open_image(CR_FD_PSTREE, O_DUMP); pstree_fd = open_image(CR_FD_PSTREE, O_DUMP);
if (pstree_fd < 0) if (pstree_fd < 0)
return -1; return -1;
......
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