diff --git a/cr-restore.c b/cr-restore.c index 1477adfcb..0bd73bea5 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -99,7 +99,6 @@ static struct shmems *shmems; static struct pipe_info *pipes; static int nr_pipes; -pid_t pstree_pid; struct pstree_item *me; static int restore_task_with_children(void *); @@ -1721,8 +1720,6 @@ err: int cr_restore_tasks(pid_t pid, struct cr_options *opts) { - pstree_pid = pid; - if (opts->leader_only) return restore_one_task(pid); return restore_all_tasks(pid, opts); diff --git a/include/crtools.h b/include/crtools.h index c00d7dea3..fa0dff596 100644 --- a/include/crtools.h +++ b/include/crtools.h @@ -181,8 +181,6 @@ struct pstree_item { u32 *children; /* array of children */ }; -extern pid_t pstree_pid; - static inline int in_vma_area(struct vma_area *vma, unsigned long addr) { return addr >= (unsigned long)vma->vma.start &&