[CRIU] [PATCH 5/6] collect: Don't check for zombie before collecting

Pavel Emelyanov xemul at parallels.com
Mon Nov 10 05:05:30 PST 2014


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

Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 cr-dump.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/cr-dump.c b/cr-dump.c
index 7f2dc15..b5ccb2a 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)
-- 
1.8.4.2




More information about the CRIU mailing list