int len;
int stay_connected = cmd->req.cmd == LXC_CMD_CONSOLE;
+ *stopped = 0;
+
len = sizeof(path)-1;
if (fill_sock_name(offset, len, name, lxcpath))
return -1;
int lxc_try_cmd(const char *name, const char *lxcpath)
{
- int stopped = 0, ret;
+ int stopped, ret;
struct lxc_cmd_rr cmd = {
.req = { .cmd = LXC_CMD_GET_INIT_PID },
};
*/
pid_t lxc_cmd_get_init_pid(const char *name, const char *lxcpath)
{
- int ret, stopped = 0;
+ int ret, stopped;
struct lxc_cmd_rr cmd = {
.req = { .cmd = LXC_CMD_GET_INIT_PID },
};
*/
int lxc_cmd_get_clone_flags(const char *name, const char *lxcpath)
{
- int ret, stopped = 0;
+ int ret, stopped;
struct lxc_cmd_rr cmd = {
.req = { .cmd = LXC_CMD_GET_CLONE_FLAGS },
};
char *lxc_cmd_get_cgroup_path(const char *name, const char *lxcpath,
const char *subsystem)
{
- int ret, stopped = 0;
+ int ret, stopped;
struct lxc_cmd_rr cmd = {
.req = {
.cmd = LXC_CMD_GET_CGROUP,
char *lxc_cmd_get_config_item(const char *name, const char *item,
const char *lxcpath)
{
- int ret, stopped = 0;
+ int ret, stopped;
struct lxc_cmd_rr cmd = {
.req = { .cmd = LXC_CMD_GET_CONFIG_ITEM,
.data = item,
*/
lxc_state_t lxc_cmd_get_state(const char *name, const char *lxcpath)
{
- int ret, stopped = 0;
+ int ret, stopped;
struct lxc_cmd_rr cmd = {
.req = { .cmd = LXC_CMD_GET_STATE }
};
*/
int lxc_cmd_stop(const char *name, const char *lxcpath)
{
- int ret, stopped = 0;
+ int ret, stopped;
struct lxc_cmd_rr cmd = {
.req = { .cmd = LXC_CMD_STOP },
};
*/
int lxc_cmd_console_winch(const char *name, const char *lxcpath)
{
- int ret, stopped = 0;
+ int ret, stopped;
struct lxc_cmd_rr cmd = {
.req = { .cmd = LXC_CMD_CONSOLE_WINCH },
};
*/
int lxc_cmd_console(const char *name, int *ttynum, int *fd, const char *lxcpath)
{
- int ret, stopped = 0;
+ int ret, stopped;
struct lxc_cmd_console_rsp_data *rspdata;
struct lxc_cmd_rr cmd = {
.req = { .cmd = LXC_CMD_CONSOLE, .data = INT_TO_PTR(*ttynum) },