From: Stéphane Graber Date: Thu, 16 Nov 2017 22:13:27 +0000 (-0500) Subject: console: Move welcome message down a bit X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=908ff6ec8581576af4eb63b83313aa7e0bdb726a;p=thirdparty%2Flxc.git console: Move welcome message down a bit Signed-off-by: Stéphane Graber --- diff --git a/src/lxc/console.c b/src/lxc/console.c index dca25e07e..dcbe02edd 100644 --- a/src/lxc/console.c +++ b/src/lxc/console.c @@ -665,15 +665,6 @@ int lxc_console(struct lxc_container *c, int ttynum, goto err1; } - if (ts->escape >= 1) { - fprintf(stderr, "\n" - "Connected to tty %1$d\n" - "Type to exit the console, " - " to enter Ctrl+%2$c itself\n", - ttynum, 'a' + escape - 1); - } - - ret = setsid(); if (ret) INFO("already group leader"); @@ -719,6 +710,15 @@ int lxc_console(struct lxc_container *c, int ttynum, goto err4; } + if (ts->escape >= 1) { + fprintf(stderr, "\n" + "Connected to tty %1$d\n" + "Type to exit the console, " + " to enter Ctrl+%2$c itself\n", + ttynum, 'a' + escape - 1); + } + + ret = setsid(); ret = lxc_mainloop(&descr, -1); if (ret) { ERROR("mainloop returned an error");