Killing of deamon

vasanth raj vasuvraj21 at gmail.com
Tue May 6 21:31:25 PDT 2008


hi  thanx a lot..,

i need one help..see i am going to develop a testcase where it makes many
connection using dbus_get,once it is done i need to get disconnected means
the deamon should be killed ..it will be simlar to logging in and logging
off from a user as in the real situation ... can any one say how do i get
same thing done here... as i used the dbus_connection_set_exit_on_disconnect
and once it is done i checked for the process state but still i saw that
deamon is still running...so plz can any one help me out with this regrads


best regrads
Vasanth

On Tue, May 6, 2008 at 10:09 PM, Havoc Pennington <hp at pobox.com> wrote:

> Hi,
>
> On Tue, May 6, 2008 at 11:28 AM, John (J5) Palmieri <johnp at redhat.com>
> wrote:
> >  However in your own application you can set use the
> >  dbus_connection_set_exit_on_disconnect API.  Note that D-Bus is often
> >  used for session management so if you do set this and the session exits
> >  there is a chance your app won't depending on how it was launched.
> >
>
> I'd go one notch further; for the session bus in a normal Linux or
> UNIX desktop session, if an app does not exit on bus disconnect, it's
> a bug in the app.
>
> It is OK to set_exit_on_disconnect(FALSE) and exit in your own way if
> you want, but it's a bug if you don't exit.
>
> For the system bus or your own custom bus, if you want to try to
> handle bus restarts, then go for it. But for a normal desktop session
> I think the bus disappearing *means* the session is over, the user is
> logging out, and if you don't exit you are going to mess things up by
> continuing to run with nobody logged in. Which breaks in various
> scenarios (e.g. automount).
>
> So the "spec" or "contract" is: on disconnect from desktop session
> bus, you MUST exit.
>
> Havoc
> _______________________________________________
> 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/20080507/9990b493/attachment.html 


More information about the dbus mailing list