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:
b5f776c
)
install: fix wrong dbus connection shutdown
author
Lennart Poettering
<lennart@poettering.net>
Sun, 11 Jul 2010 21:01:42 +0000
(23:01 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 11 Jul 2010 21:02:46 +0000
(23:02 +0200)
src/install.c
patch
|
blob
|
history
diff --git
a/src/install.c
b/src/install.c
index 2c57c9b607510b9207733188bd579f99e9cc0e3e..38c0513fad08c19f83d5fd40116427f4a8f02a71 100644
(file)
--- a/
src/install.c
+++ b/
src/install.c
@@
-773,7
+773,7
@@
static char *get_config_path(void) {
}
}
-static int do_r
un
(void) {
+static int do_r
ealize
(void) {
DBusConnection *bus = NULL;
DBusError error;
int r, q;
@@
-827,8
+827,10
@@
static int do_run(void) {
r = q;
finish:
- if (bus)
+ if (bus) {
+ dbus_connection_close(bus);
dbus_connection_unref(bus);
+ }
dbus_error_free(&error);
@@
-889,7
+891,7
@@
int main(int argc, char *argv[]) {
}
}
- if (do_r
un
() < 0)
+ if (do_r
ealize
() < 0)
goto finish;
retval = arg_action == ACTION_TEST ? 1 : 0;