[CRIU] [PATCH 3/4] restore: make prepare_task_entries() global

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


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

diff --git a/cr-restore.c b/cr-restore.c
index 27169e7..07e486b 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1590,7 +1590,7 @@ out:
 	return 1;
 }
 
-static int prepare_task_entries()
+int prepare_task_entries()
 {
 	task_entries = mmap(NULL, TASK_ENTRIES_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, 0, 0);
 	if (task_entries == MAP_FAILED) {
diff --git a/include/crtools.h b/include/crtools.h
index 7c08fd6..7b08f4b 100644
--- a/include/crtools.h
+++ b/include/crtools.h
@@ -28,5 +28,6 @@ struct proc_status_creds;
 extern bool may_dump(struct proc_status_creds *);
 struct _CredsEntry;
 extern bool may_restore(struct _CredsEntry *);
+extern int prepare_task_entries(void);
 
 #endif /* __CR_CRTOOLS_H__ */
-- 
1.8.1.2



More information about the CRIU mailing list