| 176 if (connect(fd, (struct sockaddr *)&sin, sizeof(sin)) < 0) { |
176 if (connect(fd, (struct sockaddr *)&sin, sizeof(sin)) < 0) { |
| 177 if ((errno == EINPROGRESS) || (errno == EINTR)) { |
177 if ((errno == EINPROGRESS) || (errno == EINTR)) { |
| 178 debug_printf("Connect would have blocked\n"); |
178 debug_printf("Connect would have blocked\n"); |
| 179 phb->inpa = gaim_input_add(fd, GAIM_INPUT_WRITE, no_one_calls, phb); |
179 phb->inpa = gaim_input_add(fd, GAIM_INPUT_WRITE, no_one_calls, phb); |
| 180 } else { |
180 } else { |
| |
181 debug_printf("connect failed (errno %d)\n", errno); |
| 181 close(fd); |
182 close(fd); |
| 182 g_free(phb); |
183 g_free(phb); |
| 183 return -1; |
184 return -1; |
| 184 } |
185 } |
| 185 } else { |
186 } else { |