diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-08 14:37:39 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-08 14:37:39 +0200 |
commit | c304392e65a3d6554e97bce00146fe5f2bcb64b1 (patch) | |
tree | 26c64a7f4b84b7eeaacd469106106646cdce57f5 | |
parent | 507eea4c8b4c52a5ddf232bc180a7a42cf29f074 (diff) | |
download | bird-c304392e65a3d6554e97bce00146fe5f2bcb64b1.tar bird-c304392e65a3d6554e97bce00146fe5f2bcb64b1.zip |
Some less socket error messages.
-rw-r--r-- | sysdep/unix/io.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 449f808..471944c 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -725,7 +725,6 @@ sk_maybe_write(sock *s) { if (errno != EINTR && errno != EAGAIN) { - log(L_ERR "write: %m"); s->err_hook(s, errno); return -1; } @@ -750,7 +749,6 @@ sk_maybe_write(sock *s) { if (errno != EINTR && errno != EAGAIN) { - log(L_ERR "sendto: %m"); s->err_hook(s, errno); return -1; } @@ -807,10 +805,7 @@ sk_read(sock *s) if (c < 0) { if (errno != EINTR && errno != EAGAIN) - { - log(L_ERR "read: %m"); - s->err_hook(s, errno); - } + s->err_hook(s, errno); } else if (!c) s->err_hook(s, 0); @@ -836,10 +831,7 @@ sk_read(sock *s) if (e < 0) { if (errno != EINTR && errno != EAGAIN) - { - log(L_ERR "recvfrom: %m"); - s->err_hook(s, errno); - } + s->err_hook(s, errno); return 0; } s->rpos = s->rbuf + e; @@ -862,10 +854,7 @@ sk_write(sock *s) if (connect(s->fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0) sk_tcp_connected(s); else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS) - { - log(L_ERR "connect: %m"); - s->err_hook(s, errno); - } + s->err_hook(s, errno); break; } case SK_DELETED: |