Message ID | 146479389293.19418.10026504626299717918.stgit@pro |
---|---|
State | Accepted |
Series | "Support for packet's msg_name in receive queue of promiscous DGRAM sockets" |
Commit | 5fa02dcfae779c907a85f6a2966e8988560dafd8 |
Headers | show |
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)
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(-)