[lxc-devel] [lxc/master] console: use correct escape sequence check
brauner on Github
lxc-bot at linuxcontainers.org
Sat Nov 11 22:25:32 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171111/ceec8c7c/attachment.bin>
-------------- next part --------------
From 525e2117f0c30ebf6aaaf1c051f512c406a7ddaf Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Sat, 11 Nov 2017 23:05:33 +0100
Subject: [PATCH] console: use correct escape sequence check
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
src/lxc/console.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/console.c b/src/lxc/console.c
index 216165720..4af0481ca 100644
--- a/src/lxc/console.c
+++ b/src/lxc/console.c
@@ -718,7 +718,7 @@ int lxc_console_cb_tty_stdin(int fd, uint32_t events, void *cbdata,
if (lxc_read_nointr(ts->stdinfd, &c, 1) <= 0)
return 1;
- if (ts->escape != -1) {
+ if (ts->escape >= 1) {
/* we want to exit the console with Ctrl+a q */
if (c == ts->escape && !ts->saw_escape) {
ts->saw_escape = 1;
More information about the lxc-devel
mailing list