From 91480a0f0a62732f3115d556b689d62d574294ae Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Thu, 8 Apr 2010 09:44:23 +0200 Subject: restart the container at reboot When the reboot is detected, reboot the container. That needs to set all file descriptor opened by lxc-start to be flagged with the close-on-exec flag, otherwise when re-execing ourself, we inherit our own fd. Signed-off-by: Daniel Lezcano --- src/lxc/lxc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lxc/lxc.h') diff --git a/src/lxc/lxc.h b/src/lxc/lxc.h index d89102f..a091baa 100644 --- a/src/lxc/lxc.h +++ b/src/lxc/lxc.h @@ -43,9 +43,10 @@ struct lxc_conf; * Start the specified command inside a container * @name : the name of the container * @argv : an array of char * corresponding to the commande line + * @conf : configuration * Returns 0 on sucess, < 0 otherwise */ -extern int lxc_start(const char *name, char *const argv[], struct lxc_conf *); +extern int lxc_start(const char *name, char *const argv[], struct lxc_conf *conf); /* * Stop the container previously started with lxc_start, all -- cgit v1.2.3-65-gdbad