From: Christian Brauner Date: Sat, 11 Nov 2017 22:05:33 +0000 (+0100) Subject: console: use correct escape sequence check X-Git-Tag: lxc-3.0.0.beta1~185^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=525e2117f0c30ebf6aaaf1c051f512c406a7ddaf;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 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;