summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authormarc <marc@openbsd.org>2002-11-08 07:53:03 +0000
committermarc <marc@openbsd.org>2002-11-08 07:53:03 +0000
commit78f2c7adabf0efbea8e6cb83b1d317862b8bac47 (patch)
treecde5eb2c74f3d89cf4695769f0bf9dc0beaccb33 /lib/libpthread
parentUse STDIN_FILENO and STDOUT_FILENO & ANSI prototypes; Chad Loder (diff)
downloadwireguard-openbsd-78f2c7adabf0efbea8e6cb83b1d317862b8bac47.tar.xz
wireguard-openbsd-78f2c7adabf0efbea8e6cb83b1d317862b8bac47.zip
Do not try to initialize entries in the fd table before the table
is created.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/uthread/uthread_init.c11
1 files changed, 1 insertions, 10 deletions
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:
*/