Don't prematurely check for non-active descriptors by looking up the
authorSimon Schubert <corecode@dragonflybsd.org>
Tue, 1 Aug 2006 08:25:58 +0000 (08:25 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Tue, 1 Aug 2006 08:25:58 +0000 (08:25 +0000)
commite6f830a5c56f816dde90dbccd7efec0afdb4dffd
treeebfd16f39db793dc12fdcf4b2e9a773aa27e96e9
parent884c5d1da41af5c7457b0685bdc8c9829ff0b6c3
Don't prematurely check for non-active descriptors by looking up the
entry in _thread_fd_table, as it might have not been populated before.
_FD_LOCK already takes care of filtering out non-existing descriptors.

Reported-by: Thomas E. Spanjaard
lib/libc_r/uthread/uthread_close.c