mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 06:25:25 +03:00
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.
This commit is contained in:
parent
bcb92f480f
commit
a5f5f8a077
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user