commands: ensure -1 is sent on EPIPE for init pid

parent 691544a0
......@@ -376,7 +376,12 @@ pid_t lxc_cmd_get_init_pid(const char *name, const char *lxcpath)
{
int ret, stopped;
struct lxc_cmd_rr cmd = {
.req = { .cmd = LXC_CMD_GET_INIT_PID },
.req = {
.cmd = LXC_CMD_GET_INIT_PID
},
.rsp = {
.data = INT_TO_PTR((int){-1})
}
};
ret = lxc_cmd(name, &cmd, &stopped, lxcpath, NULL);
......
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