2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 13:28:27 +00:00

dump: Don't pass pid to children parser routine

It's in item already.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Pavel Emelyanov 2012-03-01 19:05:39 +04:00 committed by Cyrill Gorcunov
parent 199e8d8248
commit 30a2b6f314

View File

@ -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;