summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Miller <alex.miller@gmx.de>2021-02-21 15:50:47 +0100
committerJoonas Niilola <juippis@gentoo.org>2021-03-26 08:44:21 +0200
commitad43009390d80e169286a6ec696b700318bdb6a2 (patch)
treec44f8c91afa46fffe5912c9e4c8a9072657d9199 /x11-misc
parentsys-kernel/pf-sources: bump to 5.11-pf5 (include PDS & BMQ CPU scheds) (diff)
downloadgentoo-ad43009390d80e169286a6ec696b700318bdb6a2.tar.gz
gentoo-ad43009390d80e169286a6ec696b700318bdb6a2.tar.bz2
gentoo-ad43009390d80e169286a6ec696b700318bdb6a2.zip
x11-misc/rss-glx: Workaround hanging processes
Add a patch that ensures a signalled process doesn't hang indefinitely if the GL driver got stuck. Closes: https://bugs.gentoo.org/478074 Signed-off-by: Alexander Miller <alex.miller@gmx.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/rss-glx/files/rss-glx-0.9.1-hang.patch14
-rw-r--r--x11-misc/rss-glx/rss-glx-0.9.1-r3.ebuild (renamed from x11-misc/rss-glx/rss-glx-0.9.1-r2.ebuild)1
2 files changed, 15 insertions, 0 deletions
diff --git a/x11-misc/rss-glx/files/rss-glx-0.9.1-hang.patch b/x11-misc/rss-glx/files/rss-glx-0.9.1-hang.patch
new file mode 100644
index 000000000000..60f2b326ec43
--- /dev/null
+++ b/x11-misc/rss-glx/files/rss-glx-0.9.1-hang.patch
@@ -0,0 +1,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[])
diff --git a/x11-misc/rss-glx/rss-glx-0.9.1-r2.ebuild b/x11-misc/rss-glx/rss-glx-0.9.1-r3.ebuild
index 61300f4958c1..7dba5284904c 100644
--- a/x11-misc/rss-glx/rss-glx-0.9.1-r2.ebuild
+++ b/x11-misc/rss-glx/rss-glx-0.9.1-r3.ebuild
@@ -40,6 +40,7 @@ PATCHES=(
"${FILESDIR}"/${P}-asneeded.patch
"${FILESDIR}"/${P}-imagemagick-7.patch
"${FILESDIR}"/${P}-c++11-narrowing.patch
+ "${FILESDIR}"/${P}-hang.patch
)
src_prepare() {