changeset 110623:1f02266d75ef

* dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0". (Bug#7113)
author Michael Albinus <michael.albinus@gmx.de>
date Mon, 27 Sep 2010 14:44:26 +0200
parents a14b02ae1413
children cf68fbaebcfe
files src/ChangeLog src/dbusbind.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Sep 27 10:59:16 2010 +0200
+++ b/src/ChangeLog	Mon Sep 27 14:44:26 2010 +0200
@@ -1,6 +1,6 @@
 2010-09-27  Michael Albinus  <michael.albinus@gmx.de>
 
-	* dbusbind.c (syms_of_dbusbind): Unset $DBUS_FATAL_WARNINGS.
+	* dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
 	(Bug#7113)
 
 2010-09-26  Jan Djärv  <jan.h.d@swipnet.se>
--- a/src/dbusbind.c	Mon Sep 27 10:59:16 2010 +0200
+++ b/src/dbusbind.c	Mon Sep 27 14:44:26 2010 +0200
@@ -2130,10 +2130,12 @@
     doc: /* If non-nil, debug messages of D-Bus bindings are raised.  */);
 #ifdef DBUS_DEBUG
   Vdbus_debug = Qt;
+  /* We can also set environment DBUS_VERBOSE=1 in order to see more
+     traces.  */
 #else
   Vdbus_debug = Qnil;
   /* We do not want to abort.  */
-  unsetenv ("DBUS_FATAL_WARNINGS");
+  setenv ("DBUS_FATAL_WARNINGS", 0, 1);
 #endif
 
   Fprovide (intern_c_string ("dbusbind"), Qnil);