fix infinite loop while closing file descriptor when too many available

This commit is contained in:
Boris Faure 2014-07-29 20:32:47 +02:00
parent 31233f31d8
commit 4b35c31087
1 changed files with 2 additions and 2 deletions

View File

@ -1561,8 +1561,8 @@ get_tty(void)
* child processes remain alive upon deletion of the window. * child processes remain alive upon deletion of the window.
*/ */
{ {
unsigned short i; long i;
unsigned long max_fds; long max_fds;
/* get number of available file descriptors */ /* get number of available file descriptors */
#ifdef _POSIX_VERSION #ifdef _POSIX_VERSION