From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Marco d'Itri" Date: Sat, 24 Jan 2004 23:02:28 +0000 Subject: D-BUS support Message-Id: <20040124230228.GA9847@wonderland.linux.it> MIME-Version: 1 Content-Type: multipart/mixed; boundary="82I3+IH0IqGh5yIs" List-Id: To: linux-hotplug@vger.kernel.org --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I'm attaching a small patch which fixes a build error when dbus support is enabled. BTW, I noticed that when dbus support is enabled udev becomes much slower (is this a serialization side effect of the dbus daemon?): # time /etc/init.d/udev start Creating initial udev device nodes...done. real 0m32.795s user 0m0.314s sys 0m0.376s # I can see with ps that there are a big number of processes waiting to complete, and I verified with strace that they are waiting for a reply from the dbus daemon, e.g.: root@wonderland:/USR3/src/P/udev/udev-0.014# strace -v -p 14583 Process 14583 attached - interrupt to quit select(4, [3], [], [3], NULL) = 1 (in [3]) read(3, "OK\r\n", 2048) = 4 select(4, [], [3], [3], NULL) = 1 (out [3]) write(3, "BEGIN\r\n", 7) = 7 writev(3, [{"l\1\0\0x\0\0\0\0\0\0\0\1\0\0\0\1o\0\0\25\0\0\0/org/fre"..., 120}, {"", 0}], 2) = 120 gettimeofday({1074981742, 670060}, NULL) = 0 select(4, [3], [], [3], {15, 0}) = 1 (in [3], left {0, 98000}) read(3, 0x805c250, 2048) = -1 ECONNRESET (Connection reset by peer) close(3) = 0 gettimeofday({1074981757, 578538}, NULL) = 0 open("/udev/.udev.tdb", O_RDWR|O_CREAT, 0644) = 3 [...] Looks like it's even timing out from time to time: root@wonderland:/USR3/src/P/udev/udev-0.014# dpkg -i ../udev_0.014-1_i386.deb (Lettura del database ... 98030 file e directory attualmente installati.) Preparativi per il rimpiazzo di udev 0.014-1 (usando ../udev_0.014-1_i386.deb) ... Spacchetto il rimpiazzo di udev ... Configuro udev (0.014-1) ... Installo la nuova versione del file di configurazione /etc/init.d/udev ... Restarting system message bus: dbus-1. Creating initial udev device nodes...cannot acquire org.kernel.udev service, error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply'done. root@wonderland:/USR3/src/P/udev/udev-0.014# -- ciao, | Marco | [4290 st4MxE3BJ1VvA] --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dbus_missing_include.diff" diff -ruN udev-014.orig/udev_dbus.c udev-014/udev_dbus.c --- udev-014.orig/udev_dbus.c 2003-12-29 20:28:21.000000000 +0100 +++ udev-014/udev_dbus.c 2004-01-24 22:43:25.000000000 +0100 @@ -12,6 +12,7 @@ #include "udev.h" #include "udev_version.h" #include "udev_dbus.h" +#include "logging.h" /** variable for the connection the to system message bus or #NULL --82I3+IH0IqGh5yIs-- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel