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
c4c3f631
Commit
c4c3f631
authored
Jul 03, 2014
by
Rodrigo Vaz
Committed by
Stéphane Graber
Jul 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make the container exit code propagate to lxc-start exit code when appropriate
Signed-off-by:
Rodrigo Sampaio Vaz
<
rodrigo@heroku.com
>
Acked-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
a8fe4754
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
lxc_start.c
src/lxc/lxc_start.c
+3
-0
lxccontainer.c
src/lxc/lxccontainer.c
+1
-0
No files found.
src/lxc/lxc_start.c
View file @
c4c3f631
...
...
@@ -336,6 +336,9 @@ int main(int argc, char *argv[])
ERROR
(
"To get more details, run the container in foreground mode."
);
ERROR
(
"Additional information can be obtained by setting the "
"--logfile and --log-priority options."
);
err
=
c
->
error_num
;
lxc_container_put
(
c
);
return
err
;
}
out:
...
...
src/lxc/lxccontainer.c
View file @
c4c3f631
...
...
@@ -669,6 +669,7 @@ static bool lxcapi_start(struct lxc_container *c, int useinit, char * const argv
reboot:
conf
->
reboot
=
0
;
ret
=
lxc_start
(
c
->
name
,
argv
,
conf
,
c
->
config_path
);
c
->
error_num
=
ret
;
if
(
conf
->
reboot
)
{
INFO
(
"container requested reboot"
);
...
...
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