mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-22 05:24:43 +02:00
Disabling error on exceptfds to support and fixing select timeout
This commit is contained in:
parent
0861b4ea3a
commit
8c4d3f23ab
@ -517,7 +517,7 @@ w32_select(int fds, w32_fd_set* readfds, w32_fd_set* writefds, w32_fd_set* excep
|
|||||||
memset(&write_ready_fds, 0, sizeof(w32_fd_set));
|
memset(&write_ready_fds, 0, sizeof(w32_fd_set));
|
||||||
|
|
||||||
if (timeout)
|
if (timeout)
|
||||||
timeout_ms = timeout->tv_sec * 100 + timeout->tv_usec / 1000;
|
timeout_ms = timeout->tv_sec * 1000 + timeout->tv_usec / 1000;
|
||||||
|
|
||||||
if (fds > MAX_FDS) {
|
if (fds > MAX_FDS) {
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
@ -531,12 +531,13 @@ w32_select(int fds, w32_fd_set* readfds, w32_fd_set* writefds, w32_fd_set* excep
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exceptfds) {
|
/* TODO - see if this needs to be supported */
|
||||||
errno = EOPNOTSUPP;
|
//if (exceptfds) {
|
||||||
debug("select - ERROR: exceptfds not supported");
|
// errno = EOPNOTSUPP;
|
||||||
DebugBreak();
|
// debug("select - ERROR: exceptfds not supported");
|
||||||
return -1;
|
// DebugBreak();
|
||||||
}
|
// return -1;
|
||||||
|
//}
|
||||||
|
|
||||||
if (readfds) {
|
if (readfds) {
|
||||||
for (i = 0; i < fds; i++)
|
for (i = 0; i < fds; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user