View | Details | Raw Unified | Return to bug 1366
Collapse All | Expand All

(-)atomicio.c (-8 / +8 lines)
Lines 57-69 Link Here
57
		res = (f) (fd, s + pos, n - pos);
57
		res = (f) (fd, s + pos, n - pos);
58
		switch (res) {
58
		switch (res) {
59
		case -1:
59
		case -1:
60
#ifdef EWOULDBLOCK
61
			if (errno == EINTR || errno == EWOULDBLOCK)
62
#else
63
			if (errno == EINTR)
60
			if (errno == EINTR)
64
#endif
65
				continue;
61
				continue;
62
#ifdef EWOULDBLOCK
63
			if (errno == EAGAIN || errno == EWOULDBLOCK) {
64
#else
66
			if (errno == EAGAIN) {
65
			if (errno == EAGAIN) {
66
#endif
67
				(void)poll(&pfd, 1, -1);
67
				(void)poll(&pfd, 1, -1);
68
				continue;
68
				continue;
69
			}
69
			}
Lines 103-115 Link Here
103
		res = (f) (fd, iov, iovcnt);
103
		res = (f) (fd, iov, iovcnt);
104
		switch (res) {
104
		switch (res) {
105
		case -1:
105
		case -1:
106
#ifdef EWOULDBLOCK
107
			if (errno == EINTR || errno == EWOULDBLOCK)
108
#else
109
			if (errno == EINTR)
106
			if (errno == EINTR)
110
#endif
111
				continue;
107
				continue;
108
#ifdef EWOULDBLOCK
109
			if (errno == EAGAIN || errno == EWOULDBLOCK) {
110
#else
112
			if (errno == EAGAIN) {
111
			if (errno == EAGAIN) {
112
#endif
113
				(void)poll(&pfd, 1, -1);
113
				(void)poll(&pfd, 1, -1);
114
				continue;
114
				continue;
115
			}
115
			}

Return to bug 1366