# HG changeset patch # User Mikael Berthe # Date 1126469331 -7200 # Node ID 89aeb8fdd2153bf45d3eee0301e9368cda6faae1 # Parent d03663d2e7d99e04a377e359fcfb699e550464a1 Revert changeset 82064124324d22cacd25fc451c6c361ac4c4ac6b This change does not work everywhere, and isn't needed anymore because we now ignore SIGPIPE. diff -r d03663d2e7d9 -r 89aeb8fdd215 mcabber/connwrap/connwrap.c --- 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;