From c3dd7e380ee3ca227730ab6a8daa4e35ad4f004e Mon Sep 17 00:00:00 2001 From: deischen Date: Mon, 29 Jan 2001 03:24:23 +0000 Subject: _exit in libc is now __sys_exit not __sys__exit. Add another check for thread library initialization (jdp, we really need a way to get _thread_init called at program start before any constructors are run). --- lib/libc_r/uthread/uthread_fd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/libc_r/uthread/uthread_fd.c') diff --git a/lib/libc_r/uthread/uthread_fd.c b/lib/libc_r/uthread/uthread_fd.c index b5b37c3..ef905e3 100644 --- a/lib/libc_r/uthread/uthread_fd.c +++ b/lib/libc_r/uthread/uthread_fd.c @@ -76,6 +76,9 @@ _thread_fd_table_init(int fd) struct fd_table_entry *entry; int saved_errno; + if (_thread_initial == NULL) + _thread_init(); + /* Check if the file descriptor is out of range: */ if (fd < 0 || fd >= _thread_dtablesize) { /* Return a bad file descriptor error: */ -- cgit v1.1