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
fd970fe0
Unverified
Commit
fd970fe0
authored
Nov 06, 2019
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
terminal: make lxc_terminal_signal_fini() static
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
d2e4cd22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
15 deletions
+9
-15
terminal.c
src/lxc/terminal.c
+9
-1
terminal.h
src/lxc/terminal.h
+0
-14
No files found.
src/lxc/terminal.c
View file @
fd970fe0
...
...
@@ -177,7 +177,15 @@ on_error:
return
NULL
;
}
void
lxc_terminal_signal_fini
(
struct
lxc_terminal
*
terminal
)
/**
* lxc_terminal_signal_fini: uninstall signal handler
*
* @terminal: terminal instance
*
* Restore the saved signal handler that was in effect at the time
* lxc_terminal_signal_init() was called.
*/
static
void
lxc_terminal_signal_fini
(
struct
lxc_terminal
*
terminal
)
{
struct
lxc_terminal_state
*
state
=
terminal
->
tty_state
;
...
...
src/lxc/terminal.h
View file @
fd970fe0
...
...
@@ -262,20 +262,6 @@ extern struct lxc_terminal_state *lxc_terminal_signal_init(int srcfd, int dstfd)
extern
int
lxc_terminal_signalfd_cb
(
int
fd
,
uint32_t
events
,
void
*
cbdata
,
struct
lxc_epoll_descr
*
descr
);
/**
* lxc_terminal_signal_fini: uninstall signal handler
*
* @terminal
* - the lxc_terminal
*
* Restore the saved signal handler that was in effect at the time
* lxc_terminal_signal_init() was called.
*
* Must be called with process_lock held to protect the lxc_ttys list, or
* from a non-threaded context.
*/
extern
void
lxc_terminal_signal_fini
(
struct
lxc_terminal
*
terminal
);
extern
int
lxc_terminal_write_ringbuffer
(
struct
lxc_terminal
*
terminal
);
extern
int
lxc_terminal_create_log_file
(
struct
lxc_terminal
*
terminal
);
extern
int
lxc_terminal_io_cb
(
int
fd
,
uint32_t
events
,
void
*
data
,
...
...
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