chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc91696
)
dbus: make sure dbus doesn't call us anymore when we unref'ed it
author
Lennart Poettering
<lennart@poettering.net>
Thu, 8 Apr 2010 02:43:47 +0000
(
04:43
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 8 Apr 2010 02:43:47 +0000
(
04:43
+0200)
dbus.c
patch
|
blob
|
history
diff --git
a/dbus.c
b/dbus.c
index ab32b9f81f89937a6b590112c79ae4bb20e2a9cf..5d914e94b973d94aa14f9ad7fbd97ac2bb61fc7f 100644
(file)
--- a/
dbus.c
+++ b/
dbus.c
@@
-614,6
+614,7
@@
void bus_done_api(Manager *m) {
m->system_bus = NULL;
dbus_connection_close(m->api_bus);
+ dbus_connection_set_dispatch_status_function(m->api_bus, NULL, NULL, NULL);
dbus_connection_unref(m->api_bus);
m->api_bus = NULL;
@@
-638,6
+639,7
@@
void bus_done_system(Manager *m) {
if (m->system_bus) {
dbus_connection_close(m->system_bus);
+ dbus_connection_set_dispatch_status_function(m->system_bus, NULL, NULL, NULL);
dbus_connection_unref(m->system_bus);
m->system_bus = NULL;
}