From: Ian Jackson Date: Tue, 23 Jun 2015 17:10:51 +0000 (+0100) Subject: libxl: spawn: Always debug log middle child process death X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2986 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2adbf6dc29dd15de88df4109185ad4d88ada2077;p=xen.git libxl: spawn: Always debug log middle child process death Otherwise the debug log is strangely devoid of an explanation for the spawn completing. We decorate `what', as otherwise the logged message is rather alarming (especially if the death is due to us sending SIGKILL, which even happens on the success path). Signed-off-by: Ian Jackson Acked-by: Wei Liu --- v4: New patch in this version of the series. --- diff --git a/tools/libxl/libxl_exec.c b/tools/libxl/libxl_exec.c index 85cbde05cb..ecb30cfbae 100644 --- a/tools/libxl/libxl_exec.c +++ b/tools/libxl/libxl_exec.c @@ -411,6 +411,8 @@ static void spawn_middle_death(libxl__egc *egc, libxl__ev_child *childw, ((WIFEXITED(status) && WEXITSTATUS(status)==0) || (WIFSIGNALED(status) && WTERMSIG(status)==SIGKILL))) { /* as expected */ + const char *what = GCSPRINTF("%s (dying as expected)", ss->what); + libxl_report_child_exitstatus(CTX, XTL_DEBUG, what, pid, status); } else if (!WIFEXITED(status)) { int loglevel = ss->detaching ? XTL_WARN : XTL_ERROR; const char *what =