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>
This commit is contained in:
Chris Wilson 2016-04-03 09:47:58 +01:00
parent 8833648b5c
commit cb12d05e79

View File

@ -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");
}