Commit e2001e1c by Michel Normand Committed by Daniel Lezcano

export struct lxc_handler from start.c to start.h

Will be required by a futur patch Signed-off-by: 's avatarMichel Normand <normand@fr.ibm.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 9227a12a
......@@ -100,15 +100,6 @@ lxc_log_define(lxc_start, lxc);
LXC_TTY_HANDLER(SIGINT);
LXC_TTY_HANDLER(SIGQUIT);
struct lxc_handler {
int sigfd;
int lock;
pid_t pid;
char tty[MAXPATHLEN];
sigset_t oldmask;
struct lxc_tty_info tty_info;
};
static int setup_sigchld_fd(sigset_t *oldmask)
{
sigset_t mask;
......
......@@ -21,7 +21,14 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
struct lxc_handler;
struct lxc_handler {
int sigfd;
int lock;
pid_t pid;
char tty[MAXPATHLEN];
sigset_t oldmask;
struct lxc_tty_info tty_info;
};
extern struct lxc_handler *lxc_init(const char *name);
extern int lxc_spawn(const char *name, struct lxc_handler *handler,
......
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