1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 03:25:31 +03:00

nspawn: log a warning on failure from wait_for_terminate()

This is at the suggestion of Djalal Harouni on the mailing list, and
reflects the behavior of shared/util.c:wait_for_terminate_and_warn().
This commit is contained in:
Luke Shumaker 2014-06-29 20:18:03 -04:00 committed by Lennart Poettering
parent 6d416b9cc8
commit 8baaf7a3d8

View File

@ -2666,8 +2666,10 @@ static int wait_for_container(pid_t pid, ContainerStatus *container) {
siginfo_t status;
r = wait_for_terminate(pid, &status);
if (r < 0)
if (r < 0) {
log_warning("Failed to wait for container: %s", strerror(-r));
return r;
}
switch (status.si_code) {
case CLD_EXITED: