projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a504a3
)
(_hurd_alloc_fd): Don't reduce FIRST_FD in the case where it starts out less than...
author
Roland McGrath
<roland@gnu.org>
Fri, 12 May 1995 16:40:34 +0000
(16:40 +0000)
committer
Roland McGrath
<roland@gnu.org>
Fri, 12 May 1995 16:40:34 +0000
(16:40 +0000)
hurd/alloc-fd.c
patch
|
blob
|
history
diff --git
a/hurd/alloc-fd.c
b/hurd/alloc-fd.c
index
e83618a
..
f21d5bb
100644
(file)
--- 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;