From ac1c74fc5be3c0244ff257941b2a622e3b288aaa Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Mon, 10 Nov 2014 17:05:30 +0400 Subject: [PATCH] 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 --- cr-dump.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/cr-dump.c b/cr-dump.c index 5c52883d7..392263103 100644 --- a/cr-dump.c +++ b/cr-dump.c @@ -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)