1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +03:00

cov: drop checking for EWOULDBLOCK

Reduce cov warning and remove this really ancient define
as lvm2 was never compilable on such platform.
This commit is contained in:
Zdenek Kabelac 2020-09-12 13:15:12 +02:00
parent 740d5bf6cd
commit a940979ff7
2 changed files with 1 additions and 4 deletions

View File

@ -48,7 +48,6 @@ int buffer_read(int fd, struct buffer *buffer) {
errno = ECONNRESET;
return 0; /* we should never encounter EOF here */
} else if (result < 0 && (errno == EAGAIN ||
(EWOULDBLOCK != EAGAIN && errno == EWOULDBLOCK) ||
errno == EINTR || errno == EIO)) {
fd_set in;
FD_ZERO(&in);
@ -78,7 +77,6 @@ int buffer_write(int fd, const struct buffer *buffer) {
if (result > 0)
written += result;
else if (result < 0 && (errno == EAGAIN ||
(EWOULDBLOCK != EAGAIN && errno == EWOULDBLOCK) ||
errno == EINTR || errno == EIO)) {
fd_set out;
FD_ZERO(&out);

View File

@ -677,8 +677,7 @@ void daemon_start(daemon_state s)
perror("sigprocmask error");
if (ret < 0) {
if (errno != EINTR && errno != EAGAIN &&
(EWOULDBLOCK == EAGAIN || errno != EWOULDBLOCK))
if ((errno != EINTR) && (errno != EAGAIN))
perror("select error");
continue;
}