Unverified Commit 9493cb92 by Christian Brauner Committed by Stéphane Graber

console: report detach message on demand

When users pass -1 there's there won't be an escape sequence to exit the console so no need to print a misleading info message about how to detach. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 3f7e0398
......@@ -665,11 +665,13 @@ 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 <Ctrl+%2$c q> to exit the console, "
"<Ctrl+%2$c Ctrl+%2$c> to enter Ctrl+%2$c itself\n",
ttynum, 'a' + escape - 1);
}
ret = setsid();
if (ret)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment