]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
start: lxc_poll()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 18 Feb 2018 22:51:58 +0000 (23:51 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 21 Feb 2018 16:59:42 +0000 (17:59 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c

index 4b142e89c3f389d72ec87b48024667af995dff7e..7ca376422e8a1436b4f2c29176c6d0b6dd023a54 100644 (file)
@@ -499,7 +499,8 @@ int lxc_poll(const char *name, struct lxc_handler *handler)
        bool has_console = true;
        struct lxc_epoll_descr descr, descr_console;
 
-       if (handler->conf->console.path && !strcmp(handler->conf->console.path, "none"))
+       if (handler->conf->console.path &&
+           strcmp(handler->conf->console.path, "none") == 0)
                has_console = false;
 
        ret = lxc_mainloop_open(&descr);