mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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:
parent
740d5bf6cd
commit
a940979ff7
@ -48,7 +48,6 @@ int buffer_read(int fd, struct buffer *buffer) {
|
|||||||
errno = ECONNRESET;
|
errno = ECONNRESET;
|
||||||
return 0; /* we should never encounter EOF here */
|
return 0; /* we should never encounter EOF here */
|
||||||
} else if (result < 0 && (errno == EAGAIN ||
|
} else if (result < 0 && (errno == EAGAIN ||
|
||||||
(EWOULDBLOCK != EAGAIN && errno == EWOULDBLOCK) ||
|
|
||||||
errno == EINTR || errno == EIO)) {
|
errno == EINTR || errno == EIO)) {
|
||||||
fd_set in;
|
fd_set in;
|
||||||
FD_ZERO(&in);
|
FD_ZERO(&in);
|
||||||
@ -78,7 +77,6 @@ int buffer_write(int fd, const struct buffer *buffer) {
|
|||||||
if (result > 0)
|
if (result > 0)
|
||||||
written += result;
|
written += result;
|
||||||
else if (result < 0 && (errno == EAGAIN ||
|
else if (result < 0 && (errno == EAGAIN ||
|
||||||
(EWOULDBLOCK != EAGAIN && errno == EWOULDBLOCK) ||
|
|
||||||
errno == EINTR || errno == EIO)) {
|
errno == EINTR || errno == EIO)) {
|
||||||
fd_set out;
|
fd_set out;
|
||||||
FD_ZERO(&out);
|
FD_ZERO(&out);
|
||||||
|
@ -677,8 +677,7 @@ void daemon_start(daemon_state s)
|
|||||||
perror("sigprocmask error");
|
perror("sigprocmask error");
|
||||||
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
if (errno != EINTR && errno != EAGAIN &&
|
if ((errno != EINTR) && (errno != EAGAIN))
|
||||||
(EWOULDBLOCK == EAGAIN || errno != EWOULDBLOCK))
|
|
||||||
perror("select error");
|
perror("select error");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user