From 29bb4c6911b21c026c3863799dcbeaa29981bf7e Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 21 Nov 2014 21:37:12 -0800 Subject: modetest: Use threads for cursors instead of SIGALRM This fixes an issue when trying to use -v and -C together. When trying to read the page flip event, we are interrupted by the SIGALRM that comes in, and so we think we timed out when we simply got EINTR. While we could just loop checking for EINTR, SIGALRM is just bad idea to begin with, so just rewrite it to use a thread. Signed-off-by: Rob Clark --- tests/modetest/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/modetest/Makefile.am') diff --git a/tests/modetest/Makefile.am b/tests/modetest/Makefile.am index 0a6af01e..8fc924a3 100644 --- a/tests/modetest/Makefile.am +++ b/tests/modetest/Makefile.am @@ -19,7 +19,8 @@ modetest_SOURCES = $(MODETEST_FILES) modetest_LDADD = \ $(top_builddir)/libdrm.la \ - $(top_builddir)/libkms/libkms.la + $(top_builddir)/libkms/libkms.la \ + -lpthread if HAVE_CAIRO AM_CFLAGS += $(CAIRO_CFLAGS) -- cgit v1.2.3