|
|
a3e2b5 |
From 52a474cf15bf2b0edb449750eb63eb8cdb9a3780 Mon Sep 17 00:00:00 2001
|
|
|
a3e2b5 |
From: Lennart Poettering <lennart@poettering.net>
|
|
|
a3e2b5 |
Date: Tue, 13 Nov 2018 12:00:42 +0100
|
|
|
a3e2b5 |
Subject: [PATCH] core: when we can't send the pending reload message, say we
|
|
|
a3e2b5 |
ignore it in the warning we log
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
No change in behaviour, just better wording.
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
(cherry picked from commit 4b66bccab004221b903b43b4c224442bfa3e9ac7)
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
Resolves: #1647359
|
|
|
a3e2b5 |
---
|
|
|
a3e2b5 |
src/core/dbus.c | 7 +++----
|
|
|
a3e2b5 |
1 file changed, 3 insertions(+), 4 deletions(-)
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
diff --git a/src/core/dbus.c b/src/core/dbus.c
|
|
|
a3e2b5 |
index 256a410215..346a440c5d 100644
|
|
|
a3e2b5 |
--- a/src/core/dbus.c
|
|
|
a3e2b5 |
+++ b/src/core/dbus.c
|
|
|
a3e2b5 |
@@ -55,13 +55,12 @@ int bus_send_pending_reload_message(Manager *m) {
|
|
|
a3e2b5 |
if (!m->pending_reload_message)
|
|
|
a3e2b5 |
return 0;
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
- /* If we cannot get rid of this message we won't dispatch any
|
|
|
a3e2b5 |
- * D-Bus messages, so that we won't end up wanting to queue
|
|
|
a3e2b5 |
- * another message. */
|
|
|
a3e2b5 |
+ /* If we cannot get rid of this message we won't dispatch any D-Bus messages, so that we won't end up wanting
|
|
|
a3e2b5 |
+ * to queue another message. */
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
r = sd_bus_send(NULL, m->pending_reload_message, NULL);
|
|
|
a3e2b5 |
if (r < 0)
|
|
|
a3e2b5 |
- log_warning_errno(r, "Failed to send queued message: %m");
|
|
|
a3e2b5 |
+ log_warning_errno(r, "Failed to send queued message, ignoring: %m");
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
m->pending_reload_message = sd_bus_message_unref(m->pending_reload_message);
|
|
|
a3e2b5 |
|