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
96eee564
Unverified
Commit
96eee564
authored
Feb 27, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console: lxc_terminal_create()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
564e31c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
attach.c
src/lxc/attach.c
+1
-1
console.c
src/lxc/console.c
+2
-2
console.h
src/lxc/console.h
+2
-2
No files found.
src/lxc/attach.c
View file @
96eee564
...
@@ -980,7 +980,7 @@ static int lxc_attach_pty(struct lxc_conf *conf, struct lxc_pty *pty)
...
@@ -980,7 +980,7 @@ static int lxc_attach_pty(struct lxc_conf *conf, struct lxc_pty *pty)
lxc_pty_init
(
pty
);
lxc_pty_init
(
pty
);
ret
=
lxc_
pty
_create
(
pty
);
ret
=
lxc_
terminal
_create
(
pty
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
SYSERROR
(
"Failed to create pty"
);
SYSERROR
(
"Failed to create pty"
);
return
-
1
;
return
-
1
;
...
...
src/lxc/console.c
View file @
96eee564
...
@@ -833,7 +833,7 @@ int lxc_terminal_create_log_file(struct lxc_pty *terminal)
...
@@ -833,7 +833,7 @@ int lxc_terminal_create_log_file(struct lxc_pty *terminal)
return
0
;
return
0
;
}
}
int
lxc_
pty
_create
(
struct
lxc_pty
*
terminal
)
int
lxc_
terminal
_create
(
struct
lxc_pty
*
terminal
)
{
{
int
ret
,
saved_errno
;
int
ret
,
saved_errno
;
...
@@ -880,7 +880,7 @@ int lxc_terminal_setup(struct lxc_conf *conf)
...
@@ -880,7 +880,7 @@ int lxc_terminal_setup(struct lxc_conf *conf)
return
0
;
return
0
;
}
}
ret
=
lxc_
pty
_create
(
terminal
);
ret
=
lxc_
terminal
_create
(
terminal
);
if
(
ret
<
0
)
if
(
ret
<
0
)
return
-
1
;
return
-
1
;
...
...
src/lxc/console.h
View file @
96eee564
...
@@ -82,11 +82,11 @@ extern int lxc_terminal_allocate(struct lxc_conf *conf, int sockfd, int *ttynum
...
@@ -82,11 +82,11 @@ extern int lxc_terminal_allocate(struct lxc_conf *conf, int sockfd, int *ttynum
* automatically chowned to the uid/gid of the unprivileged user. For this
* automatically chowned to the uid/gid of the unprivileged user. For this
* ttys_shift_ids() can be called.)
* ttys_shift_ids() can be called.)
*/
*/
extern
int
lxc_
pty
_create
(
struct
lxc_pty
*
console
);
extern
int
lxc_
terminal
_create
(
struct
lxc_pty
*
console
);
/**
/**
* lxc_terminal_setup: Create a new pty.
* lxc_terminal_setup: Create a new pty.
* - In addition to lxc_
pty
_create() also sets up all pty logs.
* - In addition to lxc_
terminal
_create() also sets up all pty logs.
*/
*/
extern
int
lxc_terminal_setup
(
struct
lxc_conf
*
);
extern
int
lxc_terminal_setup
(
struct
lxc_conf
*
);
...
...
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