Fix port: x11-toolkits/libgnomeui (multi-threading fix)

Jean-Yves Lefort jylefort at brutele.be
Mon Sep 6 16:05:43 PDT 2004


>Submitter-Id:	current-users
>Originator:	Jean-Yves Lefort
>Organization:	
>Confidential:	no 
>Synopsis:       Fix port: x11-toolkits/libgnomeui (multi-threading fix)
>Severity:       serious
>Priority:       medium
>Category:       ports
>Class:          update
>Release:	FreeBSD 4.10-RELEASE i386
>Environment:
System: FreeBSD jsite.lefort.net 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Thu Jul 1 14:25:43 CEST 2004 jylefort at jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386
>Description:
See http://bugzilla.gnome.org/show_bug.cgi?id=152023.
Patch is attached here for your convenience.
>How-To-Repeat:
>Fix:
--- libgnomeui/gnome-ice.c.orig	Tue Sep  7 00:48:38 2004
+++ libgnomeui/gnome-ice.c	Tue Sep  7 00:49:05 2004
@@ -54,6 +54,8 @@
   IceConn connection = (IceConn) data;
   IceProcessMessagesStatus status;
 
+  GDK_THREADS_ENTER();
+
   status = IceProcessMessages (connection, NULL, NULL);
 
   if (status == IceProcessMessagesIOError)
@@ -73,6 +75,8 @@
 	  IceCloseConnection (connection);
 	}
     }
+
+  GDK_THREADS_LEAVE();
 
   return TRUE;
 }


More information about the freebsd-gnome mailing list