aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@free.fr>2010-04-08 09:44:23 +0200
committerDaniel Lezcano <dlezcano@fr.ibm.com>2010-04-08 09:44:23 +0200
commit91480a0f0a62732f3115d556b689d62d574294ae (patch)
treeced4a09e17a93d12ff48af7de8f5f4c3cc765da3 /src/lxc/lxc.h
parentshutdown the container when powering off the container (diff)
downloadlxc-91480a0f0a62732f3115d556b689d62d574294ae.tar.gz
lxc-91480a0f0a62732f3115d556b689d62d574294ae.tar.bz2
lxc-91480a0f0a62732f3115d556b689d62d574294ae.zip
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 <dlezcano@fr.ibm.com>
Diffstat (limited to 'src/lxc/lxc.h')
-rw-r--r--src/lxc/lxc.h3
1 files changed, 2 insertions, 1 deletions
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