From f38fa284229e9532be1da433fc6d3d7e798172e4 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 12 Sep 2008 00:30:18 +0000 Subject: Fix an abort crash due to a race condition. This crash seems quite prevalent on FreeBSD, and really makes using help difficult. See http://bugzilla.gnome.org/show_bug.cgi?id=551757 for more details. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@11523 df743ca5-7f9a-e211-a948-0013205c9059 --- x11/yelp/Makefile | 3 ++- x11/yelp/files/patch-src_yelp-document.c | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 x11/yelp/files/patch-src_yelp-document.c (limited to 'x11/yelp') diff --git a/x11/yelp/Makefile b/x11/yelp/Makefile index f09b808a1..e038a60b1 100644 --- a/x11/yelp/Makefile +++ b/x11/yelp/Makefile @@ -3,11 +3,12 @@ # Whom: Maxim Sobolev # # $FreeBSD$ -# $MCom: ports/x11/yelp/Makefile,v 1.126 2008/08/21 20:53:19 mezz Exp $ +# $MCom: ports/x11/yelp/Makefile,v 1.127 2008/09/02 11:00:11 kwm Exp $ # PORTNAME= yelp PORTVERSION= 2.23.91 +PORTREVISION= 1 CATEGORIES= x11 gnome MASTER_SITES= GNOME DIST_SUBDIR= gnome2 diff --git a/x11/yelp/files/patch-src_yelp-document.c b/x11/yelp/files/patch-src_yelp-document.c new file mode 100644 index 000000000..a3dd9289d --- /dev/null +++ b/x11/yelp/files/patch-src_yelp-document.c @@ -0,0 +1,16 @@ +--- src/yelp-document.c.orig 2008-09-11 20:20:59.000000000 -0400 ++++ src/yelp-document.c 2008-09-11 20:20:40.000000000 -0400 +@@ -748,6 +749,13 @@ request_idle_final (YelpDocument *docume + priv = document->priv; + + g_mutex_lock (priv->mutex); ++ ++ if (priv->reqs_pending == NULL) { ++ /* ++ Time to bail as we shouldn't be here anyway. ++ */ ++ return FALSE; ++ } + + for (cur = priv->reqs_pending; cur; cur = cur->next) { + request = cur->data; -- cgit