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-30 15:13:53 +02:00
committed by Lennart Poettering
parent 6d416b9cc8
commit 8baaf7a3d8
+3 -1
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: