Revert changeset 82064124324d22cacd25fc451c6c361ac4c4ac6b
This change does not work everywhere, and isn't needed anymore because we
now ignore SIGPIPE.
--- a/mcabber/connwrap/connwrap.c Sun Sep 11 22:01:57 2005 +0200
+++ b/mcabber/connwrap/connwrap.c Sun Sep 11 22:08:51 2005 +0200
@@ -325,17 +325,6 @@
rc = connect(sockfd, serv_addr, addrlen);
else{ /* check if the socket is connected correctly */
int optlen = sizeof(int), optval;
- fd_set fds;
- struct timeval tv;
-
- FD_ZERO(&fds);
- FD_SET(sockfd, &fds);
-
- tv.tv_sec = 0;
- tv.tv_usec = 10000;
-
- if (select(sockfd+1, 0, &fds, 0, &tv) < 1)
- return -1;
if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &optval, (socklen_t*)&optlen) || optval)
return -1;
*state = 0;