[CRIU] [PATCH] dump: Don't close pid-proc in vain

Pavel Emelyanov xemul at parallels.com
Mon Sep 22 06:40:02 PDT 2014


The open_pid_proc engine knows itself how to cache
per-pid descriptors. No need in closing it by hands.

Signed-off-by: Pavel Emelyanov <xemul at parallels.com>

---

diff --git a/cr-dump.c b/cr-dump.c
index d00c158..890d60a 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1041,8 +1041,6 @@ static int collect_task(struct pstree_item *item)
 	if (pstree_alloc_cores(item))
 		goto err_close;
 
-	close_pid_proc();
-
 	pr_info("Collected %d in %d state\n", item->pid.real, item->state);
 	return 0;
 


More information about the CRIU mailing list