To overcome this, I tried with sending two method_call at a single go, that didn't helped too. In some cases both the signals/method_call are lost, and in some if I am lucky I get one of them. In most cases both the "duplicate" signals/method_call were lost.<br>
<br>Is there a patch for this bug. If not can you direct me to the part of the code which needs to be looked in-to ?<br><br>I don't have the luxury of having --print-reply because the dbus-send part has to go into DHCP server which is a single threaded application. However for de-bugging I can have them in my current shell-script.<br>
<br><br><div class="gmail_quote">On Thu, May 14, 2009 at 10:49 PM, Colin Walters <span dir="ltr"><<a href="mailto:walters@verbum.org">walters@verbum.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">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>
</div>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>
<div class="im"><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>
</div>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>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Abhijeet<br>