[CRIU] [PATCH 1/4] pstree: make read_pstree_image() global

Ruslan Kuprieiev kupruser at gmail.com
Fri Nov 15 17:00:13 PST 2013


Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
 include/pstree.h | 2 ++
 pstree.c         | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/pstree.h b/include/pstree.h
index c1f7426..eafe1ec 100644
--- a/include/pstree.h
+++ b/include/pstree.h
@@ -67,4 +67,6 @@ extern CoreEntry *core_entry_alloc(int alloc_thread_info, int alloc_tc);
 extern int pstree_alloc_cores(struct pstree_item *item);
 extern void pstree_free_cores(struct pstree_item *item);
 
+extern int read_pstree_image(void);
+
 #endif /* __CR_PSTREE_H__ */
diff --git a/pstree.c b/pstree.c
index b83453f..8d770fd 100644
--- a/pstree.c
+++ b/pstree.c
@@ -286,7 +286,7 @@ static int prepare_pstree_for_shell_job(void)
 	return 0;
 }
 
-static int read_pstree_image(void)
+int read_pstree_image(void)
 {
 	int ret = 0, i, ps_fd, fd;
 	struct pstree_item *pi, *parent = NULL;
-- 
1.8.1.2



More information about the CRIU mailing list