[maemo-commits] [maemo-commits] r11384 - in projects/haf/branches/dbus/0.x/trunk/debian: . patches

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed May 2 16:58:56 EEST 2007
Author: kihamala
Date: 2007-05-02 16:58:55 +0300 (Wed, 02 May 2007)
New Revision: 11384

Added:
   projects/haf/branches/dbus/0.x/trunk/debian/patches/38-dbus-allow-coredumps.patch
Modified:
   projects/haf/branches/dbus/0.x/trunk/debian/changelog
Log:
added patch for creating core dumps when the daemon crashes


Modified: projects/haf/branches/dbus/0.x/trunk/debian/changelog
===================================================================
--- projects/haf/branches/dbus/0.x/trunk/debian/changelog	2007-05-02 12:27:02 UTC (rev 11383)
+++ projects/haf/branches/dbus/0.x/trunk/debian/changelog	2007-05-02 13:58:55 UTC (rev 11384)
@@ -1,3 +1,11 @@
+dbus (0.61-osso28) experimental; urgency=low
+
+  * UNRELEASED
+  * Added patch for creating core dumps when the daemon crashes.
+    Fixes: NB#54587
+
+ -- Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>  Wed, 02 May 2007 16:54:39 +0300
+
 dbus (0.61-osso27) experimental; urgency=low
 
   * Added fix for per-user limit of maximum connections. Fixes: NB#51663

Added: projects/haf/branches/dbus/0.x/trunk/debian/patches/38-dbus-allow-coredumps.patch
===================================================================
--- projects/haf/branches/dbus/0.x/trunk/debian/patches/38-dbus-allow-coredumps.patch	2007-05-02 12:27:02 UTC (rev 11383)
+++ projects/haf/branches/dbus/0.x/trunk/debian/patches/38-dbus-allow-coredumps.patch	2007-05-02 13:58:55 UTC (rev 11384)
@@ -0,0 +1,19 @@
+diff -Nur dbus-0.61/dbus/dbus-sysdeps-util.c dbus-0.61.new/dbus/dbus-sysdeps-util.c
+--- dbus-0.61/dbus/dbus-sysdeps-util.c	2007-04-18 17:16:15.000000000 +0300
++++ dbus-0.61.new/dbus/dbus-sysdeps-util.c	2007-04-18 17:18:12.000000000 +0300
+@@ -43,6 +43,7 @@
+ #include <dirent.h>
+ #include <sys/un.h>
+ #include <pwd.h>
++#include <sys/prctl.h>
+ 
+ #ifndef O_BINARY
+ #define O_BINARY 0
+@@ -284,6 +285,7 @@
+                       _dbus_strerror (errno));
+       return FALSE;
+     }
++  prctl(PR_SET_DUMPABLE, 1, 0xf00, 0xf00, 0xf00);
+   
+   return TRUE;
+ }


More information about the maemo-commits mailing list