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
19a3e906
Unverified
Commit
19a3e906
authored
Feb 21, 2019
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attach: cleanup macros lxc_attach_terminal_[...]
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
92db5709
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
20 deletions
+4
-20
attach.c
src/lxc/attach.c
+4
-20
No files found.
src/lxc/attach.c
View file @
19a3e906
...
...
@@ -984,38 +984,22 @@ static int lxc_attach_terminal_mainloop_init(struct lxc_terminal *terminal,
static
inline
void
lxc_attach_terminal_close_master
(
struct
lxc_terminal
*
terminal
)
{
if
(
terminal
->
master
<
0
)
return
;
close
(
terminal
->
master
);
terminal
->
master
=
-
EBADF
;
close_prot_errno_disarm
(
terminal
->
master
);
}
static
inline
void
lxc_attach_terminal_close_slave
(
struct
lxc_terminal
*
terminal
)
{
if
(
terminal
->
slave
<
0
)
return
;
close
(
terminal
->
slave
);
terminal
->
slave
=
-
EBADF
;
close_prot_errno_disarm
(
terminal
->
slave
);
}
static
inline
void
lxc_attach_terminal_close_peer
(
struct
lxc_terminal
*
terminal
)
{
if
(
terminal
->
peer
<
0
)
return
;
close
(
terminal
->
peer
);
terminal
->
peer
=
-
EBADF
;
close_prot_errno_disarm
(
terminal
->
peer
);
}
static
inline
void
lxc_attach_terminal_close_log
(
struct
lxc_terminal
*
terminal
)
{
if
(
terminal
->
log_fd
<
0
)
return
;
close
(
terminal
->
log_fd
);
terminal
->
log_fd
=
-
EBADF
;
close_prot_errno_disarm
(
terminal
->
log_fd
);
}
int
lxc_attach
(
const
char
*
name
,
const
char
*
lxcpath
,
...
...
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