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:
Kirill Tkhai 2016-06-01 19:01:59 +03:00 committed by Pavel Emelyanov
parent a2de3eb831
commit c58a2867cb
2 changed files with 3 additions and 1 deletions

View file

@ -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);

View file

@ -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)