Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
ec9d6a3c
Unverified
Commit
ec9d6a3c
authored
Nov 11, 2017
by
Christian Brauner
Committed by
Stéphane Graber
Nov 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console: use correct escape sequence check
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
9493cb92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
console.c
src/lxc/console.c
+1
-1
No files found.
src/lxc/console.c
View file @
ec9d6a3c
...
@@ -590,7 +590,7 @@ int lxc_console_cb_tty_stdin(int fd, uint32_t events, void *cbdata,
...
@@ -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
)
if
(
lxc_read_nointr
(
ts
->
stdinfd
,
&
c
,
1
)
<=
0
)
return
1
;
return
1
;
if
(
ts
->
escape
!=
-
1
)
{
if
(
ts
->
escape
>=
1
)
{
/* we want to exit the console with Ctrl+a q */
/* we want to exit the console with Ctrl+a q */
if
(
c
==
ts
->
escape
&&
!
ts
->
saw_escape
)
{
if
(
c
==
ts
->
escape
&&
!
ts
->
saw_escape
)
{
ts
->
saw_escape
=
1
;
ts
->
saw_escape
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment