]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
start: non-functional changes
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 23 Dec 2017 11:03:32 +0000 (12:03 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 19 Jan 2018 13:46:15 +0000 (14:46 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c

index 0bd1a4b351c9165b2234c744ced841eb92787996..3049d8c0fd7671a69775ac788bea5008b0f7a9ae 100644 (file)
@@ -731,11 +731,12 @@ int lxc_init(const char *name, struct lxc_handler *handler)
        TRACE("set up signal fd");
 
        /* Do this after setting up signals since it might unblock SIGWINCH. */
-       if (lxc_console_create(conf)) {
-               ERROR("Failed to create console for container \"%s\".", name);
+       ret = lxc_console_create(conf);
+       if (ret < 0) {
+               ERROR("Failed to create console");
                goto out_restore_sigmask;
        }
-       TRACE("created console");
+       TRACE("Created console");
 
        if (lxc_ttys_shift_ids(conf) < 0) {
                ERROR("Failed to shift tty into container.");