summaryrefslogtreecommitdiff
path: root/lib/libpthread/uthread
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>2003-02-05 06:20:37 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>2003-02-05 06:20:37 +0000
commit3f5bb57d26c645a328f8b05cbd8201d43a63c426 (patch)
tree35474bcd2db6ab2e7a1e05629192d102573d69b5 /lib/libpthread/uthread
parent32205c482fbb023be41c736f1081d0b893a64c51 (diff)
AARRGGH! 2nd try, handle the case where from_fd == to_fd in _thread_fd_table_dup
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r--lib/libpthread/uthread/uthread_fd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/uthread_fd.c b/lib/libpthread/uthread/uthread_fd.c
index fc7a7d353ff..4a48a8dd48c 100644
--- a/lib/libpthread/uthread/uthread_fd.c
+++ b/lib/libpthread/uthread/uthread_fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_fd.c,v 1.19 2003/02/05 06:19:09 marc Exp $ */
+/* $OpenBSD: uthread_fd.c,v 1.20 2003/02/05 06:20:36 marc Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -228,7 +228,7 @@ _thread_fd_table_dup(int from_fd, int to_fd)
struct fd_table_entry *entry;
int ret;
- if (from_fd != too_fd) {
+ if (from_fd != to_fd) {
/* release any existing to_fd table entry */
entry = _thread_fd_table[to_fd];
if (entry != NULL) {