mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 19:21:53 +03:00
core: when we can't send the pending reload message, say we ignore it in the warning we log
No change in behaviour, just better wording.
This commit is contained in:
parent
209de5256b
commit
4b66bccab0
@ -56,13 +56,12 @@ int bus_send_pending_reload_message(Manager *m) {
|
|||||||
if (!m->pending_reload_message)
|
if (!m->pending_reload_message)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* If we cannot get rid of this message we won't dispatch any
|
/* If we cannot get rid of this message we won't dispatch any D-Bus messages, so that we won't end up wanting
|
||||||
* D-Bus messages, so that we won't end up wanting to queue
|
* to queue another message. */
|
||||||
* another message. */
|
|
||||||
|
|
||||||
r = sd_bus_send(NULL, m->pending_reload_message, NULL);
|
r = sd_bus_send(NULL, m->pending_reload_message, NULL);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
log_warning_errno(r, "Failed to send queued message: %m");
|
log_warning_errno(r, "Failed to send queued message, ignoring: %m");
|
||||||
|
|
||||||
m->pending_reload_message = sd_bus_message_unref(m->pending_reload_message);
|
m->pending_reload_message = sd_bus_message_unref(m->pending_reload_message);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user