linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* D-BUS support
@ 2004-01-24 23:02 Marco d'Itri
  2004-01-25 13:25 ` Ross Burton
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Marco d'Itri @ 2004-01-24 23:02 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 1964 bytes --]

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]

[-- Attachment #2: dbus_missing_include.diff --]
[-- Type: text/plain, Size: 366 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-01-27 19:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-24 23:02 D-BUS support Marco d'Itri
2004-01-25 13:25 ` Ross Burton
2004-01-25 13:47 ` Marco d'Itri
2004-01-25 14:25 ` Ross Burton
2004-01-27 19:15 ` Marco d'Itri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).