mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 06:25:37 +03:00
resolve: describe mdns event sources
when they go down resolved prints ``` Event source mdns-ipv4 (type io) returned error, disabling ``` instead of ``` Event source n/a (type io) returned error, disabling ```
This commit is contained in:
parent
da185cd04d
commit
a38f3ceeda
@ -494,6 +494,8 @@ int manager_mdns_ipv4_fd(Manager *m) {
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "mDNS-IPv4: Failed to create event source: %m");
|
||||
|
||||
(void) sd_event_source_set_description(m->mdns_ipv4_event_source, "mdns-ipv4");
|
||||
|
||||
return m->mdns_ipv4_fd = TAKE_FD(s);
|
||||
}
|
||||
|
||||
@ -567,5 +569,7 @@ int manager_mdns_ipv6_fd(Manager *m) {
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "mDNS-IPv6: Failed to create event source: %m");
|
||||
|
||||
(void) sd_event_source_set_description(m->mdns_ipv6_event_source, "mdns-ipv6");
|
||||
|
||||
return m->mdns_ipv6_fd = TAKE_FD(s);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user