chiark / gitweb /
bus: when we unmarshal an fd it should stay owned by the message object
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Apr 2013 21:04:20 +0000 (23:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Apr 2013 21:23:19 +0000 (23:23 +0200)
commit1ef2af5ae02aede39262dedd9fd358b607450662
tree4842912c9e8fc8d2b515237b2ebd2d07560d22fd
parent50fb97935d689a520251b2d543599be14bdfd0ed
bus: when we unmarshal an fd it should stay owned by the message object

If the user wants the fd to stay valid he should keep a reference to the
message object or duplicate the fd.

This unifies behaviour of demarshalling data fields and unix fds.
src/libsystemd-bus/bus-message.c
src/libsystemd-bus/test-bus-chat.c