sd-bus: react properly to EOVERFLOW by generating a log message about dropped broadcast messages and proceeding

This commit is contained in:
Lennart Poettering 2014-11-25 19:54:18 +01:00
parent 48eaba354e
commit f9a458c666

View file

@ -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;
}