summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorajs <ajs>2004-11-19 18:29:22 +0000
committerajs <ajs>2004-11-19 18:29:22 +0000
commitff29bb31505b485e8ffa561e21d075d28ac7d5e7 (patch)
tree20fa0d8bea625c82f5e347b3fadecc93a1112ef0
parent48577196af0cd83272cb885ac018d19e30058653 (diff)
2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* sockopt.c: (setsockopt_so_recvbuf) Stop error message from being printed every time.
-rw-r--r--lib/ChangeLog5
-rw-r--r--lib/sockopt.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 3f846ae5..06b46258 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+ * sockopt.c: (setsockopt_so_recvbuf) Stop error message from being
+ printed every time.
+
2004-11-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* memory.h: Fix prototype for memory_init().
diff --git a/lib/sockopt.c b/lib/sockopt.c
index 78e34bb1..f424f03e 100644
--- a/lib/sockopt.c
+++ b/lib/sockopt.c
@@ -29,8 +29,9 @@ setsockopt_so_recvbuf (int sock, int size)
int ret;
if ( (ret = setsockopt (sock, SOL_SOCKET, SO_RCVBUF, (char *)
- &size, sizeof (int))) < 0);
- zlog_err ("can't setsockopt SO_RCVBUF");
+ &size, sizeof (int))) < 0)
+ zlog_err ("fd %d: can't setsockopt SO_RCVBUF to %d: %s",
+ sock,size,strerror(errno));
return ret;
}