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
7c716661
Unverified
Commit
7c716661
authored
Feb 27, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console: lxc_terminal_peer_default()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
3dfe6f8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
console.c
src/lxc/console.c
+2
-2
No files found.
src/lxc/console.c
View file @
7c716661
...
@@ -634,7 +634,7 @@ void lxc_terminal_free(struct lxc_conf *conf, int fd)
...
@@ -634,7 +634,7 @@ void lxc_terminal_free(struct lxc_conf *conf, int fd)
}
}
}
}
static
int
lxc_
console
_peer_default
(
struct
lxc_pty
*
console
)
static
int
lxc_
terminal
_peer_default
(
struct
lxc_pty
*
console
)
{
{
struct
lxc_tty_state
*
ts
;
struct
lxc_tty_state
*
ts
;
const
char
*
path
=
console
->
path
;
const
char
*
path
=
console
->
path
;
...
@@ -861,7 +861,7 @@ int lxc_pty_create(struct lxc_pty *console)
...
@@ -861,7 +861,7 @@ int lxc_pty_create(struct lxc_pty *console)
goto
err
;
goto
err
;
}
}
ret
=
lxc_
console
_peer_default
(
console
);
ret
=
lxc_
terminal
_peer_default
(
console
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
ERROR
(
"Failed to allocate a peer pty device"
);
ERROR
(
"Failed to allocate a peer pty device"
);
goto
err
;
goto
err
;
...
...
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