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
8d7b6c25
Unverified
Commit
8d7b6c25
authored
Feb 23, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxccontainer: do_lxcapi_detach_interface()
thread-safety: s/exit()/_exit()/g Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
a7764ce7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lxccontainer.c
src/lxc/lxccontainer.c
+5
-5
No files found.
src/lxc/lxccontainer.c
View file @
8d7b6c25
...
...
@@ -4452,13 +4452,13 @@ static bool do_lxcapi_detach_interface(struct lxc_container *c,
init_pid
=
do_lxcapi_init_pid
(
c
);
if
(
!
switch_to_ns
(
init_pid
,
"net"
))
{
ERROR
(
"Failed to enter network namespace"
);
exit
(
EXIT_FAILURE
);
_
exit
(
EXIT_FAILURE
);
}
ret
=
lxc_netdev_isup
(
ifname
);
if
(
ret
<
0
)
{
ERROR
(
"Failed to determine whether network device
\"
%s
\"
is up"
,
ifname
);
exit
(
EXIT_FAILURE
);
_
exit
(
EXIT_FAILURE
);
}
/* netdev of ifname is up. */
...
...
@@ -4466,7 +4466,7 @@ static bool do_lxcapi_detach_interface(struct lxc_container *c,
ret
=
lxc_netdev_down
(
ifname
);
if
(
ret
)
{
ERROR
(
"Failed to set network device
\"
%s
\"
down"
,
ifname
);
exit
(
EXIT_FAILURE
);
_
exit
(
EXIT_FAILURE
);
}
}
...
...
@@ -4477,10 +4477,10 @@ static bool do_lxcapi_detach_interface(struct lxc_container *c,
ERROR
(
"Network device
\"
%s
\"
not found"
,
ifname
);
else
ERROR
(
"Failed to remove network device
\"
%s
\"
"
,
ifname
);
exit
(
EXIT_FAILURE
);
_
exit
(
EXIT_FAILURE
);
}
exit
(
EXIT_SUCCESS
);
_
exit
(
EXIT_SUCCESS
);
}
ret
=
wait_for_pid
(
pid
);
...
...
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