summaryrefslogtreecommitdiff
path: root/runner
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2020-03-12 11:59:43 +0200
committerPetri Latvala <petri.latvala@intel.com>2020-03-13 11:37:48 +0200
commit4ebe1e296d1121d08a2767a0f511eab64d0a894d (patch)
treed4eecafa1a175b6998543a3c6d513994a16992eb /runner
parentbfa5b9eb4798a6ddbb87c0bc0973ef7cd09450d4 (diff)
runner: Dump the rest of dmesg also when child refuses to die
Signed-off-by: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'runner')
-rw-r--r--runner/executor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runner/executor.c b/runner/executor.c
index 28b8a443..790f99db 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -1054,6 +1054,10 @@ static int monitor_output(pid_t child,
"but we didn't get informed of its demise...\n");
}
+ dump_dmesg(kmsgfd, outputs[_F_DMESG]);
+ if (settings->sync)
+ fdatasync(outputs[_F_DMESG]);
+
close_watchdogs(settings);
free(outbuf);
close(outfd);