Commit a5f5f8a0 authored by Dave Reisner's avatar Dave Reisner
Browse files

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.
parent bcb92f48
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment