summaryrefslogtreecommitdiff
path: root/src/nspawn
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-05-02 10:39:53 -0400
committerDave Reisner <dreisner@archlinux.org>2013-05-02 10:41:03 -0400
commita5f5f8a07743bb9aa31fa361c90fce8d4a62388e (patch)
tree2ac559d5742340abd30226ae163aadc3777fc03d /src/nspawn
parentbcb92f480fb538c50a0e0b5b3c1ac6d49411a7e5 (diff)
nspawn: inherit the exit status of container
If we get as far as successfully starting the container, nspawn should inherit the exit status of the child container process as its own.
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index bbb3334ba1..e907a1daa7 100644
--- 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;
}