28 lines
780 B
Diff
28 lines
780 B
Diff
From 7bb4d371af5ec6b8c50b71d2a80c2866d8134d9a Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Wed, 2 Jul 2014 17:36:47 +0200
|
|
Subject: [PATCH] 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.
|
|
---
|
|
src/libsystemd/sd-bus/sd-bus.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git src/libsystemd/sd-bus/sd-bus.c src/libsystemd/sd-bus/sd-bus.c
|
|
index d52afe8..eb267d4 100644
|
|
--- src/libsystemd/sd-bus/sd-bus.c
|
|
+++ 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;
|
|
}
|
|
--
|
|
1.7.9.2
|
|
|