diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-04-03 09:47:58 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-04-03 13:40:48 +0100 |
commit | cb12d05e79aedaf4f1873b1262b7eeb127e87e80 (patch) | |
tree | 1ed4147c24a1c8e78f3ce17e0a00b878c94bedbc /lib | |
parent | 8833648b5c29f77a876fa08829f0facf38f08982 (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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_aux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_aux.c b/lib/igt_aux.c index 45da07b7..91f3c4eb 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"); } |