Commit 1a2e6cbd authored by Pavel Emelyanov's avatar Pavel Emelyanov

dump: Don't close pid-proc in vain

The open_pid_proc engine knows itself how to cache
per-pid descriptors. No need in closing it by hands.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent abeae267
...@@ -1028,8 +1028,6 @@ static int collect_task(struct pstree_item *item) ...@@ -1028,8 +1028,6 @@ static int collect_task(struct pstree_item *item)
if (pstree_alloc_cores(item)) if (pstree_alloc_cores(item))
goto err_close; goto err_close;
close_pid_proc();
pr_info("Collected %d in %d state\n", item->pid.real, item->state); pr_info("Collected %d in %d state\n", item->pid.real, item->state);
return 0; return 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