summaryrefslogtreecommitdiff
path: root/x11-misc/rss-glx/files/rss-glx-0.9.1-hang.patch
blob: 60f2b326ec43599ee09a89c6414bf9f90dba33e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Ensure a signalled process exits even if the GL driver hangs.

https://bugs.gentoo.org/478074

--- a/src/driver.c
+++ b/src/driver.c
@@ -397,6 +397,7 @@
 void signalHandler (int sig)
 {
 	signalled = 1;
+	alarm(3);	/* Self-destruct if something goes wrong */
 }
 
 int main (int argc, char *argv[])