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
ee9102ff
Unverified
Commit
ee9102ff
authored
Feb 27, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console: lxc_terminal_master_cb()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
52f9292f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
console.c
src/lxc/console.c
+3
-3
console.h
src/lxc/console.h
+2
-2
No files found.
src/lxc/console.c
View file @
ee9102ff
...
...
@@ -962,8 +962,8 @@ int lxc_terminal_stdin_cb(int fd, uint32_t events, void *cbdata,
return
0
;
}
int
lxc_
console_cb_tty_master
(
int
fd
,
uint32_t
events
,
void
*
cbdata
,
struct
lxc_epoll_descr
*
descr
)
int
lxc_
terminal_master_cb
(
int
fd
,
uint32_t
events
,
void
*
cbdata
,
struct
lxc_epoll_descr
*
descr
)
{
struct
lxc_tty_state
*
ts
=
cbdata
;
char
buf
[
LXC_TERMINAL_BUFFER_SIZE
];
...
...
@@ -1051,7 +1051,7 @@ int lxc_console(struct lxc_container *c, int ttynum,
}
ret
=
lxc_mainloop_add_handler
(
&
descr
,
ts
->
masterfd
,
lxc_
console_cb_tty_master
,
ts
);
lxc_
terminal_master_cb
,
ts
);
if
(
ret
<
0
)
{
ERROR
(
"Failed to add master handler"
);
goto
close_mainloop
;
...
...
src/lxc/console.h
View file @
ee9102ff
...
...
@@ -165,8 +165,8 @@ extern int lxc_terminal_stdin_cb(int fd, uint32_t events, void *cbdata,
* lxc_terminal_mainloop_add().
* This function exits the loop cleanly when an EPOLLHUP event is received.
*/
extern
int
lxc_
console_cb_tty_master
(
int
fd
,
uint32_t
events
,
void
*
cbdata
,
struct
lxc_epoll_descr
*
descr
);
extern
int
lxc_
terminal_master_cb
(
int
fd
,
uint32_t
events
,
void
*
cbdata
,
struct
lxc_epoll_descr
*
descr
);
/*
* Setup new terminal properties. The old terminal settings are stored in
...
...
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