sd-bus: react properly to EOVERFLOW by generating a log message about dropped broadcast messages and proceeding
This commit is contained in:
parent
48eaba354e
commit
f9a458c666
|
@ -1185,6 +1185,11 @@ int bus_kernel_read_message(sd_bus *bus, bool hint_priority, int64_t priority) {
|
|||
if (errno == EAGAIN)
|
||||
return 0;
|
||||
|
||||
if (errno == EOVERFLOW) {
|
||||
log_debug("%s: kdbus reports %" PRIu64 " dropped broadcast messages, ignoring.", strna(bus->description), (uint64_t) recv.dropped_msgs);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return -errno;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue