Dr. Werner Fink 2014-03-11 11:07:39 +00:00 committed by Git OBS Bridge
parent ac8d00f52b
commit dc6304205d

View File

@ -17,14 +17,14 @@ diff --git src/core/dbus-manager.c src/core/dbus-manager.c
index 34ef1f5..30f28b6 100644 index 34ef1f5..30f28b6 100644
--- src/core/dbus-manager.c --- src/core/dbus-manager.c
+++ src/core/dbus-manager.c +++ src/core/dbus-manager.c
@@ -1386,8 +1386,11 @@ static int reply_unit_file_changes_and_free( @@ -1357,8 +1357,11 @@ static int reply_unit_file_changes_and_f
unsigned i; unsigned i;
int r; int r;
- if (n_changes > 0) - if (n_changes > 0)
- bus_foreach_bus(m, NULL, send_unit_files_changed, NULL); - bus_manager_foreach_client(m, send_unit_files_changed, NULL);
+ if (n_changes > 0) { + if (n_changes > 0) {
+ r = bus_foreach_bus(m, NULL, send_unit_files_changed, NULL); + r = bus_manager_foreach_client(m, send_unit_files_changed, NULL);
+ if (r < 0) + if (r < 0)
+ log_debug("Failed to send UnitFilesChanged signal: %s", strerror(-r)); + log_debug("Failed to send UnitFilesChanged signal: %s", strerror(-r));
+ } + }
@ -62,3 +62,5 @@ index 515ac8b..07e7f20 100644
-- --
1.7.9.2 1.7.9.2
--- src/core/dbus-manager.c
+++ src/core/dbus-manager.c 2014-03-11 11:05:44.350235568 +0000