View | Details | Raw Unified | Return to bug 3071 | Differences between
and this patch

Collapse All | Expand All

(-)a/misc.c (-2 / +2 lines)
Lines 257-263 waitrfd(int fd, int *timeoutp) Link Here
257
		errno = oerrno;
257
		errno = oerrno;
258
		if (r > 0)
258
		if (r > 0)
259
			return 0;
259
			return 0;
260
		else if (r == -1 && errno != EAGAIN)
260
		else if (r == -1 && errno != EAGAIN && errno != EINTR)
261
			return -1;
261
			return -1;
262
		else if (r == 0)
262
		else if (r == 0)
263
			break;
263
			break;
Lines 290-296 timeout_connect(int sockfd, const struct sockaddr *serv_addr, Link Here
290
		/* Succeeded already? */
290
		/* Succeeded already? */
291
		unset_nonblock(sockfd);
291
		unset_nonblock(sockfd);
292
		return 0;
292
		return 0;
293
	} else if (errno != EINPROGRESS)
293
	} else if (errno != EINPROGRESS && errno != EINTR)
294
		return -1;
294
		return -1;
295
295
296
	if (waitrfd(sockfd, timeoutp) == -1)
296
	if (waitrfd(sockfd, timeoutp) == -1)

Return to bug 3071