Loading tests/server/sockfilt.c +4 −1 Original line number Original line Diff line number Diff line Loading @@ -643,8 +643,11 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds, /* check if there is no data from PIPE input */ /* check if there is no data from PIPE input */ if(!PeekNamedPipe(handle, NULL, 0, NULL, &avail, NULL)) if(!PeekNamedPipe(handle, NULL, 0, NULL, &avail, NULL)) avail = 0; avail = 0; if(!avail) if(!avail) { FD_CLR(sock, readfds); FD_CLR(sock, readfds); /* reduce CPU load */ Sleep(10); } } /* check if there is no data from keyboard input */ } /* check if there is no data from keyboard input */ else if (!_kbhit()) { else if (!_kbhit()) { /* check if there are INPUT_RECORDs in the input buffer */ /* check if there are INPUT_RECORDs in the input buffer */ Loading Loading
tests/server/sockfilt.c +4 −1 Original line number Original line Diff line number Diff line Loading @@ -643,8 +643,11 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds, /* check if there is no data from PIPE input */ /* check if there is no data from PIPE input */ if(!PeekNamedPipe(handle, NULL, 0, NULL, &avail, NULL)) if(!PeekNamedPipe(handle, NULL, 0, NULL, &avail, NULL)) avail = 0; avail = 0; if(!avail) if(!avail) { FD_CLR(sock, readfds); FD_CLR(sock, readfds); /* reduce CPU load */ Sleep(10); } } /* check if there is no data from keyboard input */ } /* check if there is no data from keyboard input */ else if (!_kbhit()) { else if (!_kbhit()) { /* check if there are INPUT_RECORDs in the input buffer */ /* check if there are INPUT_RECORDs in the input buffer */ Loading