Commit 30a2b6f3 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Cyrill Gorcunov

dump: Don't pass pid to children parser routine

It's in item already.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 199e8d82
......@@ -774,7 +774,7 @@ static int parse_threads(struct pstree_item *item)
return 0;
}
static int parse_children(struct pstree_item *item, pid_t pid)
static int parse_children(struct pstree_item *item)
{
FILE *file;
char *tok;
......@@ -783,7 +783,7 @@ static int parse_children(struct pstree_item *item, pid_t pid)
for (i = 0; i < item->nr_threads; i++) {
file = fopen_proc(pid, "task/%d/children", item->threads[i]);
file = fopen_proc(item->pid, "task/%d/children", item->threads[i]);
if (!file)
goto err;
......@@ -909,7 +909,7 @@ static struct pstree_item *collect_task(pid_t pid, pid_t ppid, struct list_head
if (ret < 0)
goto err_close;
ret = parse_children(item, pid);
ret = parse_children(item);
if (ret < 0)
goto err_close;
......
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