summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/splashutils/files/splashutils-1.3-pthreads.patch')
-rw-r--r--media-gfx/splashutils/files/splashutils-1.3-pthreads.patch48
1 files changed, 0 insertions, 48 deletions
diff --git a/media-gfx/splashutils/files/splashutils-1.3-pthreads.patch b/media-gfx/splashutils/files/splashutils-1.3-pthreads.patch
deleted file mode 100644
index 340b81a9357b..000000000000
--- a/media-gfx/splashutils/files/splashutils-1.3-pthreads.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-diff --git a/core/daemon.c b/core/daemon.c
-index 5f3f7db..0cf2e23 100644
---- a/core/daemon.c
-+++ b/core/daemon.c
-@@ -98,9 +98,10 @@ void *thf_anim(void *unused)
- anim *a = NULL, *ca;
- item *i;
- mng_anim *mng;
-- int delay = 10000;
-+ int delay = 10000, oldstate;
-
- /* Render the first frame of all animations on the screen. */
-+ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate);
- pthread_mutex_lock(&mtx_paint);
- for (i = anims.head; i != NULL; i = i->next) {
- ca = i->p;
-@@ -113,9 +114,10 @@ void *thf_anim(void *unused)
- anim_render_frame(ca);
- }
- pthread_mutex_unlock(&mtx_paint);
-+ pthread_setcancelstate(oldstate, NULL);
-
- while(1) {
--
-+ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate);
- pthread_mutex_lock(&mtx_paint);
- /* Find the shortest delay. */
- for (i = anims.head; i != NULL; i = i->next) {
-@@ -133,9 +135,11 @@ void *thf_anim(void *unused)
- }
- }
- pthread_mutex_unlock(&mtx_paint);
-+ pthread_setcancelstate(oldstate, NULL);
-
- usleep(delay * 1000);
-
-+ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate);
- pthread_mutex_lock(&mtx_paint);
- /* Don't paint anything if we aren't in silent mode. */
- if (ctty != CTTY_SILENT)
-@@ -161,6 +165,7 @@ void *thf_anim(void *unused)
- }
-
- next: pthread_mutex_unlock(&mtx_paint);
-+ pthread_setcancelstate(oldstate, NULL);
-
- a = NULL;
- delay = 10000;