[CRIU] [PATCH v2 03/15] pstree: Export current
Kirill Tkhai
ktkhai at virtuozzo.com
Fri May 27 06:06:03 PDT 2016
Export current to allow to use find_unused_fd()
from everywhere.
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
criu/cr-restore.c | 2 +-
criu/include/pstree.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index 8e7f18e..d623af5 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -110,7 +110,7 @@
#define arch_export_unmap __export_unmap
#endif
-static struct pstree_item *current;
+struct pstree_item *current;
static int restore_task_with_children(void *);
static int sigreturn_restore(pid_t pid, CoreEntry *core);
diff --git a/criu/include/pstree.h b/criu/include/pstree.h
index 75ce865..327ad49 100644
--- a/criu/include/pstree.h
+++ b/criu/include/pstree.h
@@ -26,6 +26,8 @@ struct pstree_item {
TaskKobjIdsEntry *ids;
};
+struct pstree_item *current;
+
struct rst_info;
/* See alloc_pstree_item() for details */
static inline struct rst_info *rsti(struct pstree_item *i)
More information about the CRIU
mailing list