summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-04-03 09:47:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-04-03 13:40:48 +0100
commitcb12d05e79aedaf4f1873b1262b7eeb127e87e80 (patch)
tree1ed4147c24a1c8e78f3ce17e0a00b878c94bedbc
parent8833648b5c29f77a876fa08829f0facf38f08982 (diff)
lib: Don't report the last errno inside the async GPU hang detector
Since the last errno doesn't correspond with the signal, reporting it when we detect the GPU hang is confusing. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--lib/igt_aux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_aux.c b/lib/igt_aux.c
index 45da07b789ee..91f3c4eb62ee 100644
--- a/lib/igt_aux.c
+++ b/lib/igt_aux.c
@@ -403,6 +403,7 @@ hang_detector_process(pid_t pid, dev_t rdev)
static void sig_abort(int sig)
{
+ errno = 0; /* inside a signal, last errno reporting is confusing */
igt_assert(!"GPU hung");
}