]> 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>
Sun, 18 Feb 2018 23:00:06 +0000 (00:00 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c

index 324a3041c48d6f9ba7b4ca0fa6f0987a6d533de7..44c9feec86cbbf812e77ad3f23e8b25fe1448658 100644 (file)
@@ -507,7 +507,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);