1
1
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:
Dave Reisner 2013-05-02 10:39:53 -04:00
parent bcb92f480f
commit a5f5f8a077

View File

@ -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;
}