mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-23 18:19:39 +00:00
pstree: Export current
Export current to allow to use find_unused_fd() from everywhere. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
a2de3eb831
commit
c58a2867cb
2 changed files with 3 additions and 1 deletions
|
|
@ -108,7 +108,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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue