[CRIU] [PATCH v4 03/15] pstree: Export current
Kirill Tkhai
ktkhai at virtuozzo.com
Wed Jun 1 09:01:59 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 0014867..1e3d823 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, struct task_restore_args *ta, unsigned long alen, 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