dbus_connection_send_with_reply() shouldn't return TRUE on a disconnected connection

Thiago Macieira thiago at kde.org
Fri Apr 17 23:51:00 PDT 2009

Lennart Poettering wrote:
>The reason I was looking at this is that I am hacking unix fd passing
>support into dbus. Now, i'd like to make
>dbus_connection_send_with_reply() and friends fail if you try to send
>a DBusMessage that includes unix fds on a connection that doesn't
>support sending fds. Question is in absence of a seperate DBusError
>parameter what's the best way to handle this? Return TRUE? Return

I'd say the proper way, given the circumstances now, is that you should 
accept the message (return TRUE) then synthesise an error and post it, 
just like the Disconnected error handling.

  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20090418/64916060/attachment.pgp 

More information about the dbus mailing list