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
f1426d58
Unverified
Commit
f1426d58
authored
May 13, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxccontainer: use close_prot_errno_disarm() on state_socket_pair
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
824c5efa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
lxccontainer.c
src/lxc/lxccontainer.c
+2
-4
No files found.
src/lxc/lxccontainer.c
View file @
f1426d58
...
...
@@ -830,14 +830,12 @@ static bool wait_on_daemonized_start(struct lxc_handler *handler, int pid)
DEBUG
(
"First child %d exited"
,
pid
);
/* Close write end of the socket pair. */
close
(
handler
->
state_socket_pair
[
1
]);
handler
->
state_socket_pair
[
1
]
=
-
1
;
close_prot_errno_disarm
(
handler
->
state_socket_pair
[
1
]);
state
=
lxc_rcv_status
(
handler
->
state_socket_pair
[
0
]);
/* Close read end of the socket pair. */
close
(
handler
->
state_socket_pair
[
0
]);
handler
->
state_socket_pair
[
0
]
=
-
1
;
close_prot_errno_disarm
(
handler
->
state_socket_pair
[
0
]);
if
(
state
<
0
)
{
SYSERROR
(
"Failed to receive the container state"
);
...
...
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