From: teodor Date: Wed, 29 Sep 2004 17:11:39 +0000 (+0000) Subject: poll<=select X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=ad99278e9b7c16d2ec3e55975d84636bbc8fba81;p=tedtools.git poll<=select --- diff --git a/tcp.c b/tcp.c index 6833be2..26afeaf 100644 --- 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; }