Commit ac1c74fc authored by Pavel Emelyanov's avatar Pavel Emelyanov

collect: Don't check for zombie before collecting

We have sanity check for zombie-with kids below, no
need in additional.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 8078e387
......@@ -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)
......
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