diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-04-10 23:04:20 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-04-10 23:23:19 +0200 |
commit | 1ef2af5ae02aede39262dedd9fd358b607450662 (patch) | |
tree | 4842912c9e8fc8d2b515237b2ebd2d07560d22fd /src/libsystemd-bus/test-bus-chat.c | |
parent | logind: avoid creating stale session state files (diff) | |
download | systemd-1ef2af5ae02aede39262dedd9fd358b607450662.tar.xz systemd-1ef2af5ae02aede39262dedd9fd358b607450662.zip |
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.
Diffstat (limited to 'src/libsystemd-bus/test-bus-chat.c')
-rw-r--r-- | src/libsystemd-bus/test-bus-chat.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libsystemd-bus/test-bus-chat.c b/src/libsystemd-bus/test-bus-chat.c index 533d78cc3b..371c7a7513 100644 --- a/src/libsystemd-bus/test-bus-chat.c +++ b/src/libsystemd-bus/test-bus-chat.c @@ -230,8 +230,6 @@ static int server(sd_bus *bus) { goto fail; } - close_nointr_nofail(fd); - r = sd_bus_reply_method_return(bus, m, NULL); if (r < 0) { log_error("Failed to send reply: %s", strerror(-r)); |