summaryrefslogtreecommitdiff
path: root/lib/igt_aux.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-03-09 22:13:02 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-03-09 22:40:36 +0000
commit9759df989f18697a817d5de27021bae09bcf344e (patch)
treee0840691a95cfe9dd3cde213988c87e7e471a0fe /lib/igt_aux.c
parentd592fb9d40084de0d4bd107e817233b2ac5bb1b9 (diff)
lib: Fix hang detector
The kill/signal became mismatched in commit d930b6493d93 ("lib: Add basic support for valgrind annotations.") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_aux.c')
-rw-r--r--lib/igt_aux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_aux.c b/lib/igt_aux.c
index 2eb71449..5117dbec 100644
--- a/lib/igt_aux.c
+++ b/lib/igt_aux.c
@@ -389,7 +389,7 @@ hang_detector_process(pid_t pid, dev_t rdev)
str = udev_device_get_property_value(dev, "ERROR");
if (str && atoi(str) == 1)
- kill(pid, SIGRTMAX);
+ kill(pid, SIGIO);
}
udev_device_unref(dev);
@@ -410,7 +410,7 @@ void igt_fork_hang_detector(int fd)
igt_assert(fstat(fd, &st) == 0);
- signal(SIGRTMAX - 1, sig_abort);
+ signal(SIGIO, sig_abort);
igt_fork_helper(&hang_detector)
hang_detector_process(getppid(), st.st_rdev);
}