poll<=select
authorteodor <teodor>
Wed, 29 Sep 2004 17:11:39 +0000 (17:11 +0000)
committerteodor <teodor>
Wed, 29 Sep 2004 17:11:39 +0000 (17:11 +0000)
tcp.c

diff --git a/tcp.c b/tcp.c
index 6833be2..26afeaf 100644 (file)
--- a/tcp.c
+++ b/tcp.c
@@ -105,7 +105,7 @@ TC_ClientInitConnection(TC_Connection *cs, char *name, u_int32_t port) {
                        ntohs(cs->serv_addr.sin_port),strerror(errno));
 
         if (setsockopt(cs->fd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) < 0) {
-                tlog(TL_CRIT|TL_EXIT, "socketsockopt failed: %s", strerror(errno));
+                tlog(TL_CRIT|TL_EXIT, "socketsockopt failed: %s (d%)", strerror(errno), errno);
                 return CS_ERROR;
         }