From: Christian Brauner Date: Sat, 11 Nov 2017 22:05:33 +0000 (+0100) Subject: console: use correct escape sequence check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec9d6a3c81f0b884b86825dc39cc693b9589b397;p=thirdparty%2Flxc.git console: use correct escape sequence check Signed-off-by: Christian Brauner --- diff --git a/src/lxc/console.c b/src/lxc/console.c index b439bc20c..dca25e07e 100644 --- a/src/lxc/console.c +++ b/src/lxc/console.c @@ -590,7 +590,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;