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
22b183ea
Unverified
Commit
22b183ea
authored
Feb 27, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console: lxc_terminal_mainloop_add_peer()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
de708fb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
console.c
src/lxc/console.c
+3
-3
No files found.
src/lxc/console.c
View file @
22b183ea
...
@@ -407,7 +407,7 @@ int lxc_terminal_io_cb(int fd, uint32_t events, void *data,
...
@@ -407,7 +407,7 @@ int lxc_terminal_io_cb(int fd, uint32_t events, void *data,
return
0
;
return
0
;
}
}
static
int
lxc_
console
_mainloop_add_peer
(
struct
lxc_pty
*
console
)
static
int
lxc_
terminal
_mainloop_add_peer
(
struct
lxc_pty
*
console
)
{
{
int
ret
;
int
ret
;
...
@@ -454,7 +454,7 @@ int lxc_console_mainloop_add(struct lxc_epoll_descr *descr,
...
@@ -454,7 +454,7 @@ int lxc_console_mainloop_add(struct lxc_epoll_descr *descr,
* does attach to it in lxc_console_allocate().
* does attach to it in lxc_console_allocate().
*/
*/
console
->
descr
=
descr
;
console
->
descr
=
descr
;
ret
=
lxc_
console
_mainloop_add_peer
(
console
);
ret
=
lxc_
terminal
_mainloop_add_peer
(
console
);
if
(
ret
<
0
)
if
(
ret
<
0
)
return
-
1
;
return
-
1
;
...
@@ -563,7 +563,7 @@ static int lxc_console_peer_proxy_alloc(struct lxc_pty *console, int sockfd)
...
@@ -563,7 +563,7 @@ static int lxc_console_peer_proxy_alloc(struct lxc_pty *console, int sockfd)
console
->
tty_state
=
ts
;
console
->
tty_state
=
ts
;
console
->
peer
=
console
->
peerpty
.
slave
;
console
->
peer
=
console
->
peerpty
.
slave
;
console
->
peerpty
.
busy
=
sockfd
;
console
->
peerpty
.
busy
=
sockfd
;
ret
=
lxc_
console
_mainloop_add_peer
(
console
);
ret
=
lxc_
terminal
_mainloop_add_peer
(
console
);
if
(
ret
<
0
)
if
(
ret
<
0
)
goto
err1
;
goto
err1
;
...
...
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