From 8be27314681eb44e62740b7569d16fdb6572bc8b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 1 Nov 1996 18:21:27 +0000 Subject: Nailed that connect(2) bug. svn path=/trunk/; revision=468 --- socket.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/socket.c b/socket.c index c2ce9137..64d7481e 100644 --- a/socket.c +++ b/socket.c @@ -52,10 +52,7 @@ int clientPort; if (sock < 0) return (FILE *)NULL; - /* - * Return of connect(2) doesn't seem to reliably return -1 on - * ENETUNREACH failure - */ + /* under 2.0.23, connect(2) doesn't return -1 on ENETUNREACH failure */ errno = 0; connect(sock, (struct sockaddr *) &ad, sizeof(ad)); if (errno != 0) -- cgit v1.2.3