aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-05-12 16:40:34 +0000
committerRoland McGrath <roland@gnu.org>1995-05-12 16:40:34 +0000
commit1f6a1abf7d0ba456858e55f4193927f06f04e41a (patch)
treee57e1adc854b95f624b608365d1d4f743dd6d476 /hurd/alloc-fd.c
parent(vxworks29k): New alias. (diff)
downloadglibc-1f6a1abf7d0ba456858e55f4193927f06f04e41a.tar.gz
glibc-1f6a1abf7d0ba456858e55f4193927f06f04e41a.tar.bz2
glibc-1f6a1abf7d0ba456858e55f4193927f06f04e41a.zip
(_hurd_alloc_fd): Don't reduce FIRST_FD in the case where it starts out less than _hurd_dtablesize.
Diffstat (limited to 'hurd/alloc-fd.c')
-rw-r--r--hurd/alloc-fd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hurd/alloc-fd.c b/hurd/alloc-fd.c
index e83618ac4b..f21d5bb8e1 100644
--- a/hurd/alloc-fd.c
+++ b/hurd/alloc-fd.c
@@ -107,9 +107,10 @@ _hurd_alloc_fd (int *fd, int first_fd)
{
/* We managed to allocate a new table. Now install it. */
errno = save;
- first_fd = _hurd_dtablesize;
+ if (first_fd < _hurd_dtablesize)
+ first_fd = _hurd_dtablesize;
/* Initialize the new slots. */
- for (i = first_fd; i < size; ++i)
+ for (i = _hurd_dtablesize; i < size; ++i)
new[i] = NULL;
_hurd_dtablesize = size;
_hurd_dtable = new;