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
ec2a5cfc
Unverified
Commit
ec2a5cfc
authored
Feb 27, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console: lxc_terminal_peer_proxy_free()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
093bce5f
Show 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 @
ec2a5cfc
...
@@ -509,7 +509,7 @@ int lxc_setup_tios(int fd, struct termios *oldtios)
...
@@ -509,7 +509,7 @@ int lxc_setup_tios(int fd, struct termios *oldtios)
return
0
;
return
0
;
}
}
static
void
lxc_
console
_peer_proxy_free
(
struct
lxc_pty
*
console
)
static
void
lxc_
terminal
_peer_proxy_free
(
struct
lxc_pty
*
console
)
{
{
if
(
console
->
tty_state
)
{
if
(
console
->
tty_state
)
{
lxc_terminal_signal_fini
(
console
->
tty_state
);
lxc_terminal_signal_fini
(
console
->
tty_state
);
...
@@ -571,7 +571,7 @@ static int lxc_console_peer_proxy_alloc(struct lxc_pty *console, int sockfd)
...
@@ -571,7 +571,7 @@ static int lxc_console_peer_proxy_alloc(struct lxc_pty *console, int sockfd)
return
0
;
return
0
;
err1
:
err1
:
lxc_
console
_peer_proxy_free
(
console
);
lxc_
terminal
_peer_proxy_free
(
console
);
return
-
1
;
return
-
1
;
}
}
...
@@ -630,7 +630,7 @@ void lxc_console_free(struct lxc_conf *conf, int fd)
...
@@ -630,7 +630,7 @@ void lxc_console_free(struct lxc_conf *conf, int fd)
if
(
console
->
peerpty
.
busy
==
fd
)
{
if
(
console
->
peerpty
.
busy
==
fd
)
{
lxc_mainloop_del_handler
(
console
->
descr
,
console
->
peerpty
.
slave
);
lxc_mainloop_del_handler
(
console
->
descr
,
console
->
peerpty
.
slave
);
lxc_
console
_peer_proxy_free
(
console
);
lxc_
terminal
_peer_proxy_free
(
console
);
}
}
}
}
...
...
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