summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_sig.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2002-08-29 23:06:07 +0000
committerdeischen <deischen@FreeBSD.org>2002-08-29 23:06:07 +0000
commit8347fcb52dac051382b95182fce08ee0fc642340 (patch)
tree24c4da9130c487d85f113d7fdfa44a22f470cb61 /lib/libpthread/thread/thr_sig.c
parent175524795910e8310c89ecf8adfddb91fc451e9e (diff)
downloadFreeBSD-src-8347fcb52dac051382b95182fce08ee0fc642340.zip
FreeBSD-src-8347fcb52dac051382b95182fce08ee0fc642340.tar.gz
Remove much of the dereferencing of the fd table entries to look
at file flags and replace it with functions that will avoid null pointer checks. MFC to be done by archie ;-) PR: 42100 Reviewed by: archie, robert MFC after: 3 days
Diffstat (limited to 'lib/libpthread/thread/thr_sig.c')
-rw-r--r--lib/libpthread/thread/thr_sig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c
index 7aa9b53..cf319c6 100644
--- a/lib/libpthread/thread/thr_sig.c
+++ b/lib/libpthread/thread/thr_sig.c
@@ -536,7 +536,7 @@ thread_sig_handle_special(int sig)
* Set the file descriptor to non-blocking:
*/
__sys_fcntl(i, F_SETFL,
- _thread_fd_table[i]->flags | O_NONBLOCK);
+ _thread_fd_getflags(i) | O_NONBLOCK);
}
}
/*
OpenPOWER on IntegriCloud