Commit 4cb211c0 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

don't include crtools.h in pstree.h

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a6c422f6
......@@ -15,6 +15,7 @@
#include "compiler.h"
#include "asm/types.h"
#include "fdset.h"
#include "rst_info.h"
#include "eventpoll.h"
#include "proc_parse.h"
#include "crtools.h"
......
......@@ -81,38 +81,6 @@ int cr_exec(int pid, char **opts);
#define O_SHOW (O_RDONLY)
#define O_RSTR (O_RDONLY)
struct fdt {
int nr; /* How many tasks share this fd table */
pid_t pid; /* Who should restore this fd table */
/*
* The fd table is ready for restoing, if fdt_lock is equal to nr
* The fdt table was restrored, if fdt_lock is equal to nr + 1
*/
futex_t fdt_lock;
};
struct rst_info {
struct list_head fds;
struct list_head eventpoll;
struct list_head tty_slaves;
void *premmapped_addr;
unsigned long premmapped_len;
unsigned long clone_flags;
void *munmap_restorer;
int nr_zombies;
int service_fd_id;
struct fdt *fdt;
union {
struct pstree_item *pgrp_leader;
futex_t pgrp_set;
};
};
/*
* When we have to restore a shared resource, we mush select which
* task should do it, and make other(s) wait for it. In order to
......
......@@ -3,7 +3,8 @@
#include "list.h"
#include "pid.h"
#include "crtools.h"
#include "image.h"
#include "rst_info.h"
#include "protobuf/core.pb-c.h"
/*
......@@ -11,7 +12,6 @@
* all orphaned children in the system.
*/
#define INIT_PID (1)
struct pstree_item {
struct pstree_item *parent;
struct list_head children; /* list of my children */
......
#ifndef __CR_RST_INFO_H__
#define __CR_RST_INFO_H__
#include "lock.h"
#include "list.h"
struct fdt {
int nr; /* How many tasks share this fd table */
pid_t pid; /* Who should restore this fd table */
/*
* The fd table is ready for restoing, if fdt_lock is equal to nr
* The fdt table was restrored, if fdt_lock is equal to nr + 1
*/
futex_t fdt_lock;
};
struct rst_info {
struct list_head fds;
struct list_head eventpoll;
struct list_head tty_slaves;
void *premmapped_addr;
unsigned long premmapped_len;
unsigned long clone_flags;
void *munmap_restorer;
int nr_zombies;
int service_fd_id;
struct fdt *fdt;
union {
struct pstree_item *pgrp_leader;
futex_t pgrp_set;
};
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment