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
46800e77
Unverified
Commit
46800e77
authored
Feb 19, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start: non-functional changes
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
134df645
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
start.c
src/lxc/start.c
+3
-3
No files found.
src/lxc/start.c
View file @
46800e77
...
@@ -721,7 +721,7 @@ int lxc_init(const char *name, struct lxc_handler *handler)
...
@@ -721,7 +721,7 @@ int lxc_init(const char *name, struct lxc_handler *handler)
ERROR
(
"Failed to set state to
\"
%s
\"
"
,
lxc_state2str
(
STARTING
));
ERROR
(
"Failed to set state to
\"
%s
\"
"
,
lxc_state2str
(
STARTING
));
goto
out_close_maincmd_fd
;
goto
out_close_maincmd_fd
;
}
}
TRACE
(
"
s
et container state to
\"
STARTING
\"
"
);
TRACE
(
"
S
et container state to
\"
STARTING
\"
"
);
/* Start of environment variable setup for hooks. */
/* Start of environment variable setup for hooks. */
if
(
name
)
{
if
(
name
)
{
...
@@ -934,7 +934,8 @@ void lxc_fini(const char *name, struct lxc_handler *handler)
...
@@ -934,7 +934,8 @@ void lxc_fini(const char *name, struct lxc_handler *handler)
lxc_set_state
(
name
,
handler
,
STOPPED
);
lxc_set_state
(
name
,
handler
,
STOPPED
);
}
}
if
(
run_lxc_hooks
(
name
,
"post-stop"
,
handler
->
conf
,
NULL
))
{
ret
=
run_lxc_hooks
(
name
,
"post-stop"
,
handler
->
conf
,
NULL
);
if
(
ret
<
0
)
{
ERROR
(
"Failed to run lxc.hook.post-stop for container
\"
%s
\"
"
,
name
);
ERROR
(
"Failed to run lxc.hook.post-stop for container
\"
%s
\"
"
,
name
);
if
(
handler
->
conf
->
reboot
)
{
if
(
handler
->
conf
->
reboot
)
{
WARN
(
"Container will be stopped instead of rebooted"
);
WARN
(
"Container will be stopped instead of rebooted"
);
...
@@ -1259,7 +1260,6 @@ static int do_start(void *data)
...
@@ -1259,7 +1260,6 @@ static int do_start(void *data)
if
(
devnull_fd
<
0
)
{
if
(
devnull_fd
<
0
)
{
devnull_fd
=
open_devnull
();
devnull_fd
=
open_devnull
();
if
(
devnull_fd
<
0
)
if
(
devnull_fd
<
0
)
goto
out_warn_father
;
goto
out_warn_father
;
}
}
...
...
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