2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

collect: Don't check for zombie before collecting

We have sanity check for zombie-with kids below, no
need in additional.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2014-11-10 17:05:30 +04:00
parent 8078e38774
commit ac1c74fc5b

View File

@@ -1018,9 +1018,6 @@ static int collect_task(struct pstree_item *item)
if (ret < 0)
goto err_close;
if (item->state == TASK_DEAD)
return 0;
/* Depth-first search (DFS) is used for traversing a process tree. */
ret = collect_loop(item, get_children);
if (ret < 0)