summaryrefslogtreecommitdiff
path: root/lib/igt_aux.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/igt_aux.c')
-rw-r--r--lib/igt_aux.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/igt_aux.c b/lib/igt_aux.c
index 91f3c4eb..c32569f1 100644
--- a/lib/igt_aux.c
+++ b/lib/igt_aux.c
@@ -115,6 +115,12 @@ sig_ioctl(int fd, unsigned long request, void *arg)
SIG_ASSERT(__igt_sigiter.tid == gettid());
memset(&its, 0, sizeof(its));
+ if (timer_settime(__igt_sigiter.timer, 0, &its, NULL)) {
+ /* oops, we didn't undo the interrupter (i.e. !unwound abort) */
+ igt_ioctl = drmIoctl;
+ return drmIoctl(fd, request, arg);
+ }
+
its.it_value = __igt_sigiter.offset;
do {
long serial;