That will be really great :) .In fact to understand the dbus with glib I saw maemo's code.<br><br>Thank you for the support. :)<br><br><div class="gmail_quote">2009/5/15 Kimmo Hämäläinen <span dir="ltr"><<a href="mailto:kimmo.hamalainen@nokia.com">kimmo.hamalainen@nokia.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Thu, 2009-05-14 at 19:19 +0200, ext Colin Walters wrote:<br>
> On Thu, May 14, 2009 at 1:07 PM, Abhijeet Kumar Sinha<br>
> <<a href="mailto:abhijeet.aks@gmail.com">abhijeet.aks@gmail.com</a>> wrote:<br>
> ><br>
> > dbus_connection_read_write(conn,0);<br>
> > msg = dbus_connection_pop_message(conn);<br>
> > if ( NULL == msg ){<br>
> > usleep(1000);<br>
> > continue;<br>
> > }<br>
> > I re-wrote the code using glib, to use the glib mainloop.<br>
><br>
> I wanted to reply to your earlier message to this effect - I'm not<br>
> sure that loop is correct, though it needs analysis. Basically, using<br>
> DBus not with a mainloop is tricky and not as well tested.<br>
><br>
> > random_dbus_signal.sh -- is the client side script which sleeps for random<br>
> > seconds and then wake up and calls a method of the server -- uses dbus-send<br>
> > --system --type=method_call<br>
><br>
> Unfortunately, there is definitely a DBus bug here. You need to use<br>
> --print-reply. See discussion here:<br>
><br>
> <a href="http://lists.freedesktop.org/archives/dbus/2009-March/011054.html" target="_blank">http://lists.freedesktop.org/archives/dbus/2009-March/011054.html</a><br>
<br>
</div></div>There is a patch here:<br>
<a href="https://bugs.freedesktop.org/show_bug.cgi?id=896" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=896</a><br>
<br>
We are running the patched version in Maemo. Seems to work.<br>
<br>
-Kimmo<br>
<br>
> _______________________________________________<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>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Abhijeet<br>