From 3f5bb57d26c645a328f8b05cbd8201d43a63c426 Mon Sep 17 00:00:00 2001 From: Marco S Hyman Date: Wed, 5 Feb 2003 06:20:37 +0000 Subject: AARRGGH! 2nd try, handle the case where from_fd == to_fd in _thread_fd_table_dup --- lib/libpthread/uthread/uthread_fd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libpthread') 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 * 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) { -- cgit v1.2.3