summaryrefslogtreecommitdiff
path: root/src/core/dbus-manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-11 04:10:19 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-11 04:19:59 +0100
commitfe7f06f142cf42928e419d8578afd75bf1439672 (patch)
treee3648abc539e5599e72379b8867a89c4aa7b1c6d /src/core/dbus-manager.c
parent7ced1d8f878cf233fb0dd58a1820940b5ecd5dcc (diff)
dbus: suppress duplicate and misleading messages
When we try to send a signal on a connection we didn't hae the time to process the Disconnected message yet, don't generate multiple warning messages, but only a single debug message. https://bugs.freedesktop.org/show_bug.cgi?id=75874
Diffstat (limited to 'src/core/dbus-manager.c')
-rw-r--r--src/core/dbus-manager.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c
index 34ef1f5d29..30f28b6e2c 100644
--- a/src/core/dbus-manager.c
+++ b/src/core/dbus-manager.c
@@ -1386,8 +1386,11 @@ static int reply_unit_file_changes_and_free(
unsigned i;
int r;
- if (n_changes > 0)
- bus_foreach_bus(m, NULL, send_unit_files_changed, NULL);
+ if (n_changes > 0) {
+ r = bus_foreach_bus(m, NULL, send_unit_files_changed, NULL);
+ if (r < 0)
+ log_debug("Failed to send UnitFilesChanged signal: %s", strerror(-r));
+ }
r = sd_bus_message_new_method_return(message, &reply);
if (r < 0)