commands: port lxc_try_cmd() to new helpers

parent 0db97911
...@@ -494,12 +494,10 @@ static int lxc_cmd(const char *name, struct lxc_cmd_rr *cmd, bool *stopped, ...@@ -494,12 +494,10 @@ static int lxc_cmd(const char *name, struct lxc_cmd_rr *cmd, bool *stopped,
int lxc_try_cmd(const char *name, const char *lxcpath) int lxc_try_cmd(const char *name, const char *lxcpath)
{ {
bool stopped = false; bool stopped = false;
struct lxc_cmd_rr cmd = {
.req = {
.cmd = LXC_CMD_GET_INIT_PID,
},
};
int ret; int ret;
struct lxc_cmd_rr cmd;
lxc_cmd_init(&cmd, LXC_CMD_GET_INIT_PID);
ret = lxc_cmd(name, &cmd, &stopped, lxcpath, NULL); ret = lxc_cmd(name, &cmd, &stopped, lxcpath, NULL);
if (stopped) if (stopped)
......
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