Commit a54585ad by LiFeng

Fix lxc-console hang

The variable 'descr' is mistakenly covered with 'descr_console'. Signed-off-by: 's avatarLiFeng <lifeng68@huawei.com>
parent 4d467642
...@@ -540,6 +540,8 @@ int lxc_poll(const char *name, struct lxc_handler *handler) ...@@ -540,6 +540,8 @@ int lxc_poll(const char *name, struct lxc_handler *handler)
ERROR("Failed to add console handlers to console mainloop"); ERROR("Failed to add console handlers to console mainloop");
goto out_mainloop_console; goto out_mainloop_console;
} }
handler->conf->console.descr = &descr;
} }
ret = lxc_cmd_mainloop_add(name, &descr, handler); ret = lxc_cmd_mainloop_add(name, &descr, handler);
......
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