diff options
-rw-r--r-- | lib/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <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; } |