|
|
@ -615,7 +615,7 @@ int wait_read_select(int sockd, int timeout) |
|
|
|
FD_SET(sockd, &readfs); |
|
|
|
FD_SET(sockd, &readfs); |
|
|
|
do { |
|
|
|
do { |
|
|
|
ret = select(sockd + 1, &readfs, NULL, NULL, &tv_timeout); |
|
|
|
ret = select(sockd + 1, &readfs, NULL, NULL, &tv_timeout); |
|
|
|
} while (unlikely(ret < 0 && interrupted())); |
|
|
|
} while (unlikely(ret < 0)); |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -692,7 +692,7 @@ int wait_write_select(int sockd, int timeout) |
|
|
|
FD_SET(sockd, &writefds); |
|
|
|
FD_SET(sockd, &writefds); |
|
|
|
do { |
|
|
|
do { |
|
|
|
ret = select(sockd + 1, NULL, &writefds, NULL, &tv_timeout); |
|
|
|
ret = select(sockd + 1, NULL, &writefds, NULL, &tv_timeout); |
|
|
|
} while (unlikely(ret < 0 && interrupted())); |
|
|
|
} while (unlikely(ret < 0)); |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|