mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-26 23:44:35 +02:00
3-3 c3
This commit is contained in:
parent
18bd5676ce
commit
61b9e0c585
@ -472,9 +472,8 @@ w32_select(int fds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
//excute any scheduled APCs
|
//excute any scheduled APCs
|
||||||
if (0 != wait_for_any_event(NULL, 0, 0)) {
|
if (0 != wait_for_any_event(NULL, 0, 0))
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
|
|
||||||
//see if any io is ready
|
//see if any io is ready
|
||||||
for (i = 0; i < fds; i++) {
|
for (i = 0; i < fds; i++) {
|
||||||
@ -495,8 +494,7 @@ w32_select(int fds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
//if io on some fds is already ready, return
|
//if io on some fds is already ready, return
|
||||||
if (out_ready_fds)
|
if (out_ready_fds) {
|
||||||
{
|
|
||||||
if (readfds)
|
if (readfds)
|
||||||
*readfds = read_ready_fds;
|
*readfds = read_ready_fds;
|
||||||
if (writefds)
|
if (writefds)
|
||||||
@ -513,9 +511,8 @@ w32_select(int fds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, const
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0 != wait_for_any_event(events, num_events, time_milliseconds - ((ticks_now - ticks_start) & 0xffffffff))) {
|
if (0 != wait_for_any_event(events, num_events, time_milliseconds - ((ticks_now - ticks_start) & 0xffffffff)))
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
|
|
||||||
//check on fd status
|
//check on fd status
|
||||||
out_ready_fds = 0;
|
out_ready_fds = 0;
|
||||||
@ -555,14 +552,16 @@ w32_select(int fds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int w32_dup(int oldfd) {
|
int
|
||||||
|
w32_dup(int oldfd) {
|
||||||
CHECK_FD(oldfd);
|
CHECK_FD(oldfd);
|
||||||
errno = EOPNOTSUPP;
|
errno = EOPNOTSUPP;
|
||||||
debug("ERROR: dup is not implemented yet");
|
debug("ERROR: dup is not implemented yet");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int w32_dup2(int oldfd, int newfd) {
|
int
|
||||||
|
w32_dup2(int oldfd, int newfd) {
|
||||||
CHECK_FD(oldfd);
|
CHECK_FD(oldfd);
|
||||||
errno = EOPNOTSUPP;
|
errno = EOPNOTSUPP;
|
||||||
debug("ERROR: dup2 is not implemented yet");
|
debug("ERROR: dup2 is not implemented yet");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user