exit_on_disconnect

Cem Eliguzel cem at eliguzel.net
Tue Mar 16 23:05:02 PDT 2010


Thanks Thiago.


What I don't understand is why there does not exist  a propagation mechanism
from dbus to applications via function
callbacks in order to handle disconnection mechanism.


Also, I strive to understand why the connection is broken. It's not because
of the fact that dbus-daemon died.
The dbus-daemon and thus the session is still alive. The application can
reconnect the dbus session next time
it is launched.


And, I can't see anything wrong with the dbus communictaion. Here is the
last few messages printed by dbus-monitor:


signal sender=:1.2 -> dest=(null destination) serial=1717
path=/org/gnome/Rygel1; interface=org.gnome.Rygel1; member=PlayerPlaying
   string "Bob Acri"
   string "Sleep Away"

signal sender=:1.2 -> dest=(null destination) serial=1718
path=/org/gnome/Rygel1; interface=org.gnome.Rygel1; member=PlayerStopped

signal sender=org.freedesktop.DBus -> dest=(null destination) serial=7
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
member=NameOwnerChanged
   string "org.gnome.Rygel1"
   string ":1.2"
   string ""
signal sender=org.freedesktop.DBus -> dest=(null destination) serial=8
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
member=NameOwnerChanged
   string ":1.2"
   string ":1.2"
   string ""


Do you see anything wrong here?


Kind regards,
Cem Eliguzel


On Mon, Mar 15, 2010 at 11:59 PM, Thiago Macieira <thiago at kde.org> wrote:

> Em Segunda-feira 15. Março 2010, às 22.38.07, Cem Eliguzel escreveu:
> > Hello,
> >
> > I have a disconnected dbus connection problem. When it happens the
> > application using it exits. I have noticed that exit_on_disconnect is set
> > to TRUE when a connection object is created. I have two questions
> > regarding this:
> >
> >
> >    1. What's the rationale behind calling _exit() on disconnection
>
> Because usually a program's lifetime is tied to the session it is part of
> and
> the D-Bus session daemon's lifetime determines the session lifetime. So
> when
> the server exits and closes the connection, most applications should clean
> up
> and exit too.
>
> >    2. What can be the reason for dbus connection to disconnect?
>
> There are many reasons, including the server exiting or you sending invalid
> data.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>  Senior Product Manager - Nokia, Qt Development Frameworks
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100317/0fd8e395/attachment.htm>


More information about the dbus mailing list