1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-08-30 15:51:56 +00:00

fds need to be zeroed before set in modminer.

This commit is contained in:
Con Kolivas 2012-10-07 10:19:52 +11:00
parent 40b747bae6
commit 58bba40a03

View File

@ -128,6 +128,7 @@ modminer_detect()
} while(0) } while(0)
#define status_read(eng) do { \ #define status_read(eng) do { \
FD_ZERO(&fds); \
FD_SET(fd, &fds); \ FD_SET(fd, &fds); \
select(fd+1, &fds, NULL, NULL, NULL); \ select(fd+1, &fds, NULL, NULL, NULL); \
if (1 != read(fd, buf, 1)) \ if (1 != read(fd, buf, 1)) \