Commit 68147935 authored by Pekka Pessi's avatar Pekka Pessi

Silenced printing spurious network errors in sresolv/sres.c.

darcs-hash:20060427133419-65a35-a2a6126dbb6ef5a7a99f4fe73ba1ab287ac5f15c.gz
parent 03a4f612
......@@ -2255,7 +2255,9 @@ int sres_resolver_error(sres_resolver_t *res, int socket)
n = recvmsg(socket, msg, MSG_ERRQUEUE);
if (n < 0) {
SU_DEBUG_1(("%s: recvmsg: %s\n", __func__, su_strerror(su_errno())));
int error = su_errno();
if (error != EAGAIN && error != EWOULDBLOCK)
SU_DEBUG_1(("%s: recvmsg: %s\n", __func__, su_strerror(error)));
return n;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment