Unix FD Passing
Havoc Pennington
hp at pobox.com
Wed May 20 13:24:52 PDT 2009
Hi,
On Wed, May 20, 2009 at 4:09 PM, Lennart Poettering <mzqohf at 0pointer.de> wrote:
>
> I don't really think this would help much anyway. Because unix fd
> arrays would have to be handled by clients more like string arrays
> than the other fixed arrays, since I'd need to allocate memory for
> them because I need to translate the array of indexes stored in the
> message to the actual array of file descriptors. Which means file
> descriptors *need* to be handled different from the other fixed types
> anyway. (because the array returned would need to be freed)
>
The concern here is generic marshaling code where if it sees
dbus_type_is_fixed() in an array, it just goes ahead and uses the
fixed array marshaling stuff.
Can that happen?
refresh my memory - the issue here is that manually doing an array of
fds works, but get_fixed_array() does not?
Havoc
More information about the dbus
mailing list