From ff29bb31505b485e8ffa561e21d075d28ac7d5e7 Mon Sep 17 00:00:00 2001 From: ajs Date: Fri, 19 Nov 2004 18:29:22 +0000 Subject: 2004-11-19 Andrew J. Schorr * sockopt.c: (setsockopt_so_recvbuf) Stop error message from being printed every time. --- lib/ChangeLog | 5 +++++ lib/sockopt.c | 5 +++-- 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 + + * sockopt.c: (setsockopt_so_recvbuf) Stop error message from being + printed every time. + 2004-11-16 Andrew J. Schorr * 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; } -- cgit v1.2.1