diff options
author | Petri Latvala <petri.latvala@intel.com> | 2020-03-12 11:59:43 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2020-03-13 11:37:48 +0200 |
commit | 4ebe1e296d1121d08a2767a0f511eab64d0a894d (patch) | |
tree | d4eecafa1a175b6998543a3c6d513994a16992eb | |
parent | bfa5b9eb4798a6ddbb87c0bc0973ef7cd09450d4 (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>
-rw-r--r-- | runner/executor.c | 4 |
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); |