Mercurial > hg
changeset 431:89aeb8fdd215
Revert changeset 82064124324d22cacd25fc451c6c361ac4c4ac6b
This change does not work everywhere, and isn't needed anymore because we
now ignore SIGPIPE.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 11 Sep 2005 22:08:51 +0200 |
parents | d03663d2e7d9 |
children | 3a613e1d229b |
files | mcabber/connwrap/connwrap.c |
diffstat | 1 files changed, 0 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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;