diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-02 17:36:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-02 17:36:47 +0200 |
commit | 7bb4d371af5ec6b8c50b71d2a80c2866d8134d9a (patch) | |
tree | cf61d1b5408c75aa82a19f9cffe07754ff3d340d /src/libsystemd | |
parent | b5eca3a2059f9399d1dc52cbcf9698674c4b1cf0 (diff) |
sd-bus: when an event loop terminates, explicitly close the bus
This makes sure we actually release the bus and all the messages it
references.
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/sd-bus/sd-bus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c index d52afe8437..eb267d430e 100644 --- a/src/libsystemd/sd-bus/sd-bus.c +++ b/src/libsystemd/sd-bus/sd-bus.c @@ -2940,6 +2940,7 @@ static int quit_callback(sd_event_source *event, void *userdata) { assert(event); sd_bus_flush(bus); + sd_bus_close(bus); return 1; } |