From 525e2117f0c30ebf6aaaf1c051f512c406a7ddaf Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 11 Nov 2017 23:05:33 +0100 Subject: [PATCH] console: use correct escape sequence check Signed-off-by: Christian Brauner --- 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; -- 2.47.2