mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 06:45:35 +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:
@@ -1018,9 +1018,6 @@ static int collect_task(struct pstree_item *item)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto err_close;
|
goto err_close;
|
||||||
|
|
||||||
if (item->state == TASK_DEAD)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
/* Depth-first search (DFS) is used for traversing a process tree. */
|
/* Depth-first search (DFS) is used for traversing a process tree. */
|
||||||
ret = collect_loop(item, get_children);
|
ret = collect_loop(item, get_children);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Reference in New Issue
Block a user