aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-01 18:21:27 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-01 18:21:27 +0000
commit8be27314681eb44e62740b7569d16fdb6572bc8b (patch)
tree02218b44b54f8660b5f650545650f338e5f0d791
parentb3a7e862ffce87753dee9836bf287981644b28cd (diff)
downloadfetchmail-8be27314681eb44e62740b7569d16fdb6572bc8b.tar.gz
fetchmail-8be27314681eb44e62740b7569d16fdb6572bc8b.tar.bz2
fetchmail-8be27314681eb44e62740b7569d16fdb6572bc8b.zip
Nailed that connect(2) bug.
svn path=/trunk/; revision=468
-rw-r--r--socket.c5
1 files changed, 1 insertions, 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)