chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcb92f4
)
nspawn: inherit the exit status of container
author
Dave Reisner
<dreisner@archlinux.org>
Thu, 2 May 2013 14:39:53 +0000
(10:39 -0400)
committer
Dave Reisner
<dreisner@archlinux.org>
Thu, 2 May 2013 14:41:03 +0000
(10:41 -0400)
If we get as far as successfully starting the container, nspawn should
inherit the exit status of the child container process as its own.
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index bbb3334ba1a2cfb023f3f9451ddf2030df07e248..e907a1daa7f31549d45bca1747fc4523e3990780 100644
(file)
--- a/
src/nspawn/nspawn.c
+++ b/
src/nspawn/nspawn.c
@@
-1696,9
+1696,9
@@
int main(int argc, char *argv[]) {
}
if (status.si_code == CLD_EXITED) {
+ r = status.si_status;
if (status.si_status != 0) {
log_error("Container failed with error code %i.", status.si_status);
- r = status.si_status;
break;
}