Thanks Kimmo!<br><br><div><span class="gmail_quote">On 1/25/07, <b class="gmail_sendername">Kimmo Hämäläinen</b> <<a href="mailto:kimmo.hamalainen@nokia.com">kimmo.hamalainen@nokia.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 2007-01-24 at 18:20 -0800, ext Krishna R wrote:<br>> Need some more help, sorry for the trouble...<br>><br>> I am able to send and recv fsignals fine, but i see that signals get<br>> dropped rarely...is that even possible?
<br>><br>> To send the signal i do the following steps in my app<br>><br>> dbus_bus_get()<br>> dbus_message_new_signal()<br>> dbus_message_append_args()<br>> dbus_connection_send()<br>> dbus_connection_flush()
<br>> dbus_message_unref()<br>> dbus_connection_unref()<br>> exits program.<br>><br>> One the recv side i add a match rule and set a filter function.<br>><br>> If i run the send app manually a few times from cmd line, i rarely see
<br>> in the recv terminal that the signal has not been got (i use<br>> fprintfs).<br>> It happens once in 30 or 40 tries i do. Randomly.<br>><br>> I have error checks and debug print statements for each of the calls
<br>> so i know none of calls themselves fail. Send app exits as a sucess<br>> but the recv side never got the signal sent.<br><br>It sounds like this bug:<br><a href="https://bugs.freedesktop.org/show_bug.cgi?id=896">
https://bugs.freedesktop.org/show_bug.cgi?id=896</a><br><br>You can work around it by adding a short sleep before exiting the<br>sending program.<br><br>BR; Kimmo<br><br>> Are there any tips for debugging this kind of problem. Or am i missing
<br>> something here.<br>><br>> Thanks!<br>> -Krish<br>><br>> On 1/24/07, John (J5) Palmieri < <a href="mailto:johnp@redhat.com">johnp@redhat.com</a>> wrote:<br>> On Wed, 2007-01-24 at 16:27 -0500, Havoc Pennington wrote:
<br>><br>> ><br>> > > 1. Is this a correct way to recv signals? Do i have to do<br>> > > dbus_message_unref(message) in the filter function after<br>> handling it
<br>> > > before i return?<br>> ><br>> > I don't believe so, I could misremember, but it would be<br>> documented if<br>> > you did have to probably.
<br>><br>> Hmm, wait. I might be misremembering too. The filter<br>> function may<br>> unref for you and I think I was thinking of needing to unref<br>> after<br>> creating a reply message. So if one needs to keep a message
<br>> around they<br>> need to ref it.<br>><br>> --<br>> John (J5) Palmieri <<a href="mailto:johnp@redhat.com">johnp@redhat.com</a>><br>><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">http://lists.freedesktop.org/mailman/listinfo/dbus
</a><br></blockquote></div><br>