- changed select to uselect
- some fixes in tecs.c
This commit is contained in:
@@ -67,7 +67,7 @@ int term_wait_socket(int socket, int msecTmo) {
|
||||
FD_SET(STDIN_FILENO, &mask);
|
||||
tmo.tv_sec=msecTmo / 1000;
|
||||
tmo.tv_usec=(msecTmo % 1000) * 1000;
|
||||
i=select(FD_SETSIZE, &mask, NULL, NULL, &tmo);
|
||||
i=uselect(FD_SETSIZE, &mask, NULL, NULL, &tmo);
|
||||
if (FD_ISSET(STDIN_FILENO, &mask)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user