* key.c (is_idle): Correct maximal file descriptor and return

value.
This commit is contained in:
Pavel Roskin 2003-01-27 22:37:32 +00:00
parent b25dd0a948
commit 781dae3544
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-01-27 Arpi <arpi@mplayerhq.hu>
* key.c (is_idle): Correct maximal file descriptor and return
value.
2003-01-27 Andrew V. Samoilov <sav@bcs.zp.ua>
* util.h (app_text): Remove declaration - it became static.

View File

@ -1026,8 +1026,7 @@ is_idle (void)
#endif
timeout.tv_sec = 0;
timeout.tv_usec = 0;
select (maxfdp, &select_set, 0, 0, &timeout);
return !FD_ISSET (0, &select_set);
return (select (maxfdp + 1, &select_set, 0, 0, &timeout) <= 0);
}