Commit 832012f61defb7acdcfef0da9d93966fe70e5d04

ckolivas 2013-05-09T13:42:53

Only use MSG_NOSIGNAL for !win32 since it doesn't exist on windows.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/util.c b/util.c
index bcf9349..66ae810 100644
--- a/util.c
+++ b/util.c
@@ -958,7 +958,11 @@ static enum send_ret __stratum_send(struct pool *pool, char *s, ssize_t len)
 		FD_SET(sock, &wd);
 		if (select(sock + 1, NULL, &wd, NULL, &timeout) < 1)
 			return SEND_SELECTFAIL;
+#ifndef WIN32
 		sent = send(pool->sock, s + ssent, len, MSG_NOSIGNAL);
+#else
+		sent = send(pool->sock, s + ssent, len, 0);
+#endif
 		if (sent < 0) {
 			if (!sock_blocks())
 				return SEND_SENDFAIL;