0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Some less socket error messages.

This commit is contained in:
Martin Mares 2000-05-08 12:37:39 +00:00
parent 507eea4c8b
commit c304392e65

View File

@ -725,7 +725,6 @@ sk_maybe_write(sock *s)
{ {
if (errno != EINTR && errno != EAGAIN) if (errno != EINTR && errno != EAGAIN)
{ {
log(L_ERR "write: %m");
s->err_hook(s, errno); s->err_hook(s, errno);
return -1; return -1;
} }
@ -750,7 +749,6 @@ sk_maybe_write(sock *s)
{ {
if (errno != EINTR && errno != EAGAIN) if (errno != EINTR && errno != EAGAIN)
{ {
log(L_ERR "sendto: %m");
s->err_hook(s, errno); s->err_hook(s, errno);
return -1; return -1;
} }
@ -807,10 +805,7 @@ sk_read(sock *s)
if (c < 0) if (c < 0)
{ {
if (errno != EINTR && errno != EAGAIN) if (errno != EINTR && errno != EAGAIN)
{ s->err_hook(s, errno);
log(L_ERR "read: %m");
s->err_hook(s, errno);
}
} }
else if (!c) else if (!c)
s->err_hook(s, 0); s->err_hook(s, 0);
@ -836,10 +831,7 @@ sk_read(sock *s)
if (e < 0) if (e < 0)
{ {
if (errno != EINTR && errno != EAGAIN) if (errno != EINTR && errno != EAGAIN)
{ s->err_hook(s, errno);
log(L_ERR "recvfrom: %m");
s->err_hook(s, errno);
}
return 0; return 0;
} }
s->rpos = s->rbuf + e; s->rpos = s->rbuf + e;
@ -862,10 +854,7 @@ sk_write(sock *s)
if (connect(s->fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0) if (connect(s->fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0)
sk_tcp_connected(s); sk_tcp_connected(s);
else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS) else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS)
{ s->err_hook(s, errno);
log(L_ERR "connect: %m");
s->err_hook(s, errno);
}
break; break;
} }
case SK_DELETED: case SK_DELETED: