mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-17 22:22:44 +00:00
sd-rtnl: log if kernel buffer is overrun as we currently can't handle that case
This commit is contained in:
@@ -1132,10 +1132,13 @@ static int socket_recv_message(int fd, struct iovec *iov, uint32_t *_group, bool
|
||||
assert(iov);
|
||||
|
||||
r = recvmsg(fd, &msg, MSG_TRUNC | (peek ? MSG_PEEK : 0));
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
/* no data */
|
||||
if (errno == ENOBUFS)
|
||||
log_debug("rtnl: kernel receive buffer overrun");
|
||||
|
||||
return (errno == EAGAIN) ? 0 : -errno;
|
||||
else if (r == 0)
|
||||
} else if (r == 0)
|
||||
/* connection was closed by the kernel */
|
||||
return -ECONNRESET;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user