diff options
author | Daniel Eischen <deischen@FreeBSD.org> | 2002-08-29 23:06:07 +0000 |
---|---|---|
committer | Daniel Eischen <deischen@FreeBSD.org> | 2002-08-29 23:06:07 +0000 |
commit | d8b5986dd6a718d948b9ea0e2da3256ac45bff42 (patch) | |
tree | 24c4da9130c487d85f113d7fdfa44a22f470cb61 /lib/libpthread/thread/thr_exit.c | |
parent | ee92a1ab51e1543706ad3802c5d218b04df5e0ba (diff) |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_exit.c')
-rw-r--r-- | lib/libpthread/thread/thr_exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_exit.c b/lib/libpthread/thread/thr_exit.c index fd90e29590773..8af1c1f90da75 100644 --- a/lib/libpthread/thread/thr_exit.c +++ b/lib/libpthread/thread/thr_exit.c @@ -69,7 +69,7 @@ void _exit(int status) for (i = 0; i < _thread_dtablesize; i++) { /* Check if this file descriptor is in use: */ if (_thread_fd_table[i] != NULL && - !(_thread_fd_table[i]->flags & O_NONBLOCK)) { + (_thread_fd_getflags(i) & O_NONBLOCK) == 0) { /* Get the current flags: */ flags = __sys_fcntl(i, F_GETFL, NULL); /* Clear the nonblocking file descriptor flag: */ |