From: "Marco d'Itri" <md@Linux.IT>
To: linux-hotplug@vger.kernel.org
Subject: D-BUS support
Date: Sat, 24 Jan 2004 23:02:28 +0000 [thread overview]
Message-ID: <20040124230228.GA9847@wonderland.linux.it> (raw)
[-- 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
next reply other threads:[~2004-01-24 23:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-24 23:02 Marco d'Itri [this message]
2004-01-25 13:25 ` D-BUS support 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040124230228.GA9847@wonderland.linux.it \
--to=md@linux.it \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.