summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-29 20:18:03 -0400
committerLennart Poettering <lennart@poettering.net>2014-06-30 15:13:53 +0200
commit8baaf7a3d8c42970c5215f4dcf84393b84b07e78 (patch)
treea74aad88f8f7a893fd35ce456cc601b5035b068b /src
parent6d416b9cc8ce39e5f97737b749d4bb1fb4f86df0 (diff)
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().
Diffstat (limited to 'src')
-rw-r--r--src/nspawn/nspawn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index be0e6b5386..8fb72d6d36 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -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: