1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Use MSG_NOSIGNAL on stratum send()

This commit is contained in:
ckolivas 2013-05-09 13:36:34 +10:00
parent a7cbbc9fc3
commit 6acfdbd661

2
util.c
View File

@ -958,7 +958,7 @@ 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;
sent = send(pool->sock, s + ssent, len, 0);
sent = send(pool->sock, s + ssent, len, MSG_NOSIGNAL);
if (sent < 0) {
if (!sock_blocks())
return SEND_SENDFAIL;