Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!seismo!hao!hplabs!sri-unix!gwyn@brl-vld
From: gwyn%brl-vld@sri-unix.UUCP
Newsgroups: net.unix-wizards
Subject: Re:  dup2 simulator
Message-ID: <17454@sri-arpa.UUCP>
Date: Mon, 12-Mar-84 04:20:14 EST
Article-I.D.: sri-arpa.17454
Posted: Mon Mar 12 04:20:14 1984
Date-Received: Wed, 14-Mar-84 19:28:04 EST
Lines: 6

From:      Doug Gwyn (VLD/VMB) 

Your dup(2) emulation incorrectly returns an error indication if
fildes2 is not open.  The close(fildes2) return value should not
be tested:
	(void)close(fildes2);