hi thanx a lot..,<br><br>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<br>
<br><br>best regrads<br>Vasanth <br><br><div class="gmail_quote">On Tue, May 6, 2008 at 10:09 PM, Havoc Pennington <<a href="mailto:hp@pobox.com">hp@pobox.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<div class="Ih2E3d"><br>
On Tue, May 6, 2008 at 11:28 AM, John (J5) Palmieri <<a href="mailto:johnp@redhat.com">johnp@redhat.com</a>> wrote:<br>
> However in your own application you can set use the<br>
> dbus_connection_set_exit_on_disconnect API. Note that D-Bus is often<br>
> used for session management so if you do set this and the session exits<br>
> there is a chance your app won't depending on how it was launched.<br>
><br>
<br>
</div>I'd go one notch further; for the session bus in a normal Linux or<br>
UNIX desktop session, if an app does not exit on bus disconnect, it's<br>
a bug in the app.<br>
<br>
It is OK to set_exit_on_disconnect(FALSE) and exit in your own way if<br>
you want, but it's a bug if you don't exit.<br>
<br>
For the system bus or your own custom bus, if you want to try to<br>
handle bus restarts, then go for it. But for a normal desktop session<br>
I think the bus disappearing *means* the session is over, the user is<br>
logging out, and if you don't exit you are going to mess things up by<br>
continuing to run with nobody logged in. Which breaks in various<br>
scenarios (e.g. automount).<br>
<br>
So the "spec" or "contract" is: on disconnect from desktop session<br>
bus, you MUST exit.<br>
<font color="#888888"><br>
Havoc<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
</div></div></blockquote></div><br>