mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-16 21:30:52 +00:00
sd-rtnl: recv_message - don't fail on interrupt
We should just try again instead.
This commit is contained in:
@@ -1348,8 +1348,10 @@ static int socket_recv_message(int fd, struct iovec *iov, uint32_t *_group, bool
|
||||
/* no data */
|
||||
if (errno == ENOBUFS)
|
||||
log_debug("rtnl: kernel receive buffer overrun");
|
||||
else if (errno == EAGAIN)
|
||||
log_debug("rtnl: no data in socket");
|
||||
|
||||
return (errno == EAGAIN) ? 0 : -errno;
|
||||
return (errno == EAGAIN || errno == EINTR) ? 0 : -errno;
|
||||
} else if (r == 0)
|
||||
/* connection was closed by the kernel */
|
||||
return -ECONNRESET;
|
||||
|
||||
Reference in New Issue
Block a user