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
3f52fd07
Commit
3f52fd07
authored
Jul 31, 2012
by
Ivan Vilata i Balaguer
Committed by
Daniel Lezcano
Jul 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow escape prefix to escape itself
(Closes: #659011). Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
0f6f3a5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lxc_console.c
src/lxc/lxc_console.c
+4
-2
No files found.
src/lxc/lxc_console.c
View file @
3f52fd07
...
...
@@ -144,7 +144,7 @@ static int stdin_handler(int fd, void *data, struct lxc_epoll_descr *descr)
}
/* we want to exit the console with Ctrl+a q */
if
(
c
==
my_args
.
escape
)
{
if
(
c
==
my_args
.
escape
&&
!
wait4q
)
{
wait4q
=
!
wait4q
;
return
0
;
}
...
...
@@ -202,7 +202,9 @@ int main(int argc, char *argv[])
if
(
err
)
goto
out
;
fprintf
(
stderr
,
"
\n
Type <Ctrl+%c q> to exit the console
\n
"
,
fprintf
(
stderr
,
"
\n
\
Type <Ctrl+%1$c q> to exit the console, \
<Ctrl+%1$c Ctrl+%1$c> to enter Ctrl+%1$c itself
\n
"
,
'a'
+
my_args
.
escape
-
1
);
err
=
setsid
();
...
...
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