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
c86e2584
Unverified
Commit
c86e2584
authored
Feb 27, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console: lxc_terminal_getfd()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
ee9102ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
console.c
src/lxc/console.c
+1
-1
console.h
src/lxc/console.h
+1
-1
lxccontainer.c
src/lxc/lxccontainer.c
+1
-1
No files found.
src/lxc/console.c
View file @
c86e2584
...
...
@@ -987,7 +987,7 @@ int lxc_terminal_master_cb(int fd, uint32_t events, void *cbdata,
return
0
;
}
int
lxc_
console
_getfd
(
struct
lxc_container
*
c
,
int
*
ttynum
,
int
*
masterfd
)
int
lxc_
terminal
_getfd
(
struct
lxc_container
*
c
,
int
*
ttynum
,
int
*
masterfd
)
{
return
lxc_cmd_console
(
c
->
name
,
ttynum
,
masterfd
,
c
->
config_path
);
}
...
...
src/lxc/console.h
View file @
c86e2584
...
...
@@ -140,7 +140,7 @@ extern int lxc_console(struct lxc_container *c, int ttynum,
* Set ttynum to -1 to allocate the first available pty, or to a value within
* the range specified by lxc.tty.max to allocate a specific pty.
*/
extern
int
lxc_
console
_getfd
(
struct
lxc_container
*
c
,
int
*
ttynum
,
extern
int
lxc_
terminal
_getfd
(
struct
lxc_container
*
c
,
int
*
ttynum
,
int
*
masterfd
);
/*
...
...
src/lxc/lxccontainer.c
View file @
c86e2584
...
...
@@ -526,7 +526,7 @@ static int do_lxcapi_console_getfd(struct lxc_container *c, int *ttynum, int *ma
if
(
!
c
)
return
-
1
;
return
lxc_
console
_getfd
(
c
,
ttynum
,
masterfd
);
return
lxc_
terminal
_getfd
(
c
,
ttynum
,
masterfd
);
}
WRAP_API_2
(
int
,
lxcapi_console_getfd
,
int
*
,
int
*
)
...
...
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