SOURCES: xorg-xserver-server-dbus_core.patch (NEW) - initial version
lkrotowski
lkrotowski at pld-linux.org
Wed Sep 12 18:43:07 CEST 2007
Author: lkrotowski Date: Wed Sep 12 16:43:07 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- initial version
---- Files affected:
SOURCES:
xorg-xserver-server-dbus_core.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/xorg-xserver-server-dbus_core.patch
diff -u /dev/null SOURCES/xorg-xserver-server-dbus_core.patch:1.1
--- /dev/null Wed Sep 12 18:43:07 2007
+++ SOURCES/xorg-xserver-server-dbus_core.patch Wed Sep 12 18:43:02 2007
@@ -0,0 +1,32 @@
+From 6268d3668a939f32919f1b0d37c94b308af66536 Mon Sep 17 00:00:00 2001
+From: Julien Cristau <jcristau at debian.org>
+Date: Thu, 6 Sep 2007 22:20:24 +0200
+Subject: [PATCH] config/dbus: don't call RemoveGeneralSocket if bus_info.fd == -1
+
+Fixes a crash reported at:
+http://bugs.freedesktop.org/show_bug.cgi?id=12291
+
+---
+ config/dbus-core.c | 6 ++++--
+ 1 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/config/dbus-core.c b/config/dbus-core.c
+index 2888159..d220cea 100644
+--- a/config/dbus-core.c
++++ b/config/dbus-core.c
+@@ -87,8 +87,10 @@ teardown(void)
+ dbus_connection_unref(bus_info.connection);
+
+ RemoveBlockAndWakeupHandlers(block_handler, wakeup_handler, &bus_info);
+- RemoveGeneralSocket(bus_info.fd);
+- bus_info.fd = -1;
++ if (bus_info.fd != -1) {
++ RemoveGeneralSocket(bus_info.fd);
++ bus_info.fd = -1;
++ }
+ bus_info.connection = NULL;
+
+ for (hook = bus_info.hooks; hook; hook = hook->next) {
+--
+1.5.3.1
+
================================================================
More information about the pld-cvs-commit
mailing list