diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2002-11-08 07:53:04 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2002-11-08 07:53:04 +0000 |
commit | 87d4220939bb6d6b5344c00a208756565936adbb (patch) | |
tree | e0f8d6f0375145ab1adfba03041e4660f0faca24 | |
parent | f706ab20024eec57f3f556b5a894703062fa73b2 (diff) |
Do not try to initialize entries in the fd table before the table
is created.
-rw-r--r-- | lib/libc_r/uthread/uthread_init.c | 11 | ||||
-rw-r--r-- | lib/libpthread/uthread/uthread_init.c | 11 |
2 files changed, 2 insertions, 20 deletions
diff --git a/lib/libc_r/uthread/uthread_init.c b/lib/libc_r/uthread/uthread_init.c index 445fd6b69f5..b2414f7cc25 100644 --- a/lib/libc_r/uthread/uthread_init.c +++ b/lib/libc_r/uthread/uthread_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_init.c,v 1.24 2002/11/07 03:51:21 marc Exp $ */ +/* $OpenBSD: uthread_init.c,v 1.25 2002/11/08 07:53:03 marc Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -188,15 +188,6 @@ _thread_init(void) } /* - * initialize the fd table for the stdio files. This grabs - * the file flags before we start messing with them. - */ - for (i = 0; i < 3; i++) - if (_thread_fd_table_init(i) == -1 && errno != EBADF) - PANIC("Cannot get stdio flags"); - - - /* * Create a pipe that is written to by the signal handler to prevent * signals being missed in calls to _select: */ diff --git a/lib/libpthread/uthread/uthread_init.c b/lib/libpthread/uthread/uthread_init.c index 445fd6b69f5..b2414f7cc25 100644 --- a/lib/libpthread/uthread/uthread_init.c +++ b/lib/libpthread/uthread/uthread_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_init.c,v 1.24 2002/11/07 03:51:21 marc Exp $ */ +/* $OpenBSD: uthread_init.c,v 1.25 2002/11/08 07:53:03 marc Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -188,15 +188,6 @@ _thread_init(void) } /* - * initialize the fd table for the stdio files. This grabs - * the file flags before we start messing with them. - */ - for (i = 0; i < 3; i++) - if (_thread_fd_table_init(i) == -1 && errno != EBADF) - PANIC("Cannot get stdio flags"); - - - /* * Create a pipe that is written to by the signal handler to prevent * signals being missed in calls to _select: */ |