From 4d1ffb0abb608d23ea399f36ed0b8d32e24935a8 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 23 Dec 2017 12:03:32 +0100 Subject: [PATCH] start: non-functional changes Signed-off-by: Christian Brauner --- src/lxc/start.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index e2ca11455..a66881e56 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -739,11 +739,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.");