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
d049f0e9
Unverified
Commit
d049f0e9
authored
Feb 28, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
terminal: lxc_terminal_prepare_login()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
cd0a2b2f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
attach.c
src/lxc/attach.c
+1
-1
terminal.c
src/lxc/terminal.c
+1
-1
terminal.h
src/lxc/terminal.h
+1
-1
No files found.
src/lxc/attach.c
View file @
d049f0e9
...
@@ -958,7 +958,7 @@ static int attach_child_main(struct attach_clone_payload *payload)
...
@@ -958,7 +958,7 @@ static int attach_child_main(struct attach_clone_payload *payload)
}
}
if
(
options
->
attach_flags
&
LXC_ATTACH_ALLOCATE_PTY
)
{
if
(
options
->
attach_flags
&
LXC_ATTACH_ALLOCATE_PTY
)
{
ret
=
lxc_
login_pty
(
payload
->
pty_fd
);
ret
=
lxc_
terminal_prepare_login
(
payload
->
pty_fd
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
SYSERROR
(
"Failed to prepare pty file descriptor %d"
,
payload
->
pty_fd
);
SYSERROR
(
"Failed to prepare pty file descriptor %d"
,
payload
->
pty_fd
);
goto
on_error
;
goto
on_error
;
...
...
src/lxc/terminal.c
View file @
d049f0e9
...
@@ -1144,7 +1144,7 @@ int lxc_make_controlling_terminal(int fd)
...
@@ -1144,7 +1144,7 @@ int lxc_make_controlling_terminal(int fd)
return
0
;
return
0
;
}
}
int
lxc_
login_pty
(
int
fd
)
int
lxc_
terminal_prepare_login
(
int
fd
)
{
{
int
ret
;
int
ret
;
...
...
src/lxc/terminal.h
View file @
d049f0e9
...
@@ -282,7 +282,7 @@ extern int lxc_terminal_io_cb(int fd, uint32_t events, void *data,
...
@@ -282,7 +282,7 @@ extern int lxc_terminal_io_cb(int fd, uint32_t events, void *data,
struct
lxc_epoll_descr
*
descr
);
struct
lxc_epoll_descr
*
descr
);
extern
int
lxc_make_controlling_terminal
(
int
fd
);
extern
int
lxc_make_controlling_terminal
(
int
fd
);
extern
int
lxc_
login_pty
(
int
fd
);
extern
int
lxc_
terminal_prepare_login
(
int
fd
);
extern
void
lxc_terminal_conf_free
(
struct
lxc_terminal
*
console
);
extern
void
lxc_terminal_conf_free
(
struct
lxc_terminal
*
console
);
extern
void
lxc_terminal_info_init
(
struct
lxc_terminal_info
*
pty
);
extern
void
lxc_terminal_info_init
(
struct
lxc_terminal_info
*
pty
);
extern
void
lxc_terminal_init
(
struct
lxc_terminal
*
pty
);
extern
void
lxc_terminal_init
(
struct
lxc_terminal
*
pty
);
...
...
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