From: Christian Brauner Date: Sat, 11 Nov 2017 22:05:33 +0000 (+0100) Subject: console: use correct escape sequence check X-Git-Tag: lxc-2.0.10~575 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce63c9ca7fd1dfa50b9c6a04ce7b433204d28773;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 8f6203f00..72c01b192 100644 --- a/src/lxc/console.c +++ b/src/lxc/console.c @@ -616,7 +616,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;