[v2,03/15] pstree: Export current

Submitted by Kirill Tkhai on May 27, 2016, 1:06 p.m.

Details

Message ID 146435436295.31234.18116391151629053140.stgit@pro
State Rejected
Series "Support for packet's msg_name in receive queue of promiscous DGRAM sockets"
Headers show

Commit Message

Kirill Tkhai May 27, 2016, 1:06 p.m.
Export current to allow to use find_unused_fd()
from everywhere.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 criu/cr-restore.c     |    2 +-
 criu/include/pstree.h |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

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)