dup2 simulator

gwyn%brl-vld at sri-unix.UUCP gwyn%brl-vld at sri-unix.UUCP
Mon Mar 12 19:20:14 AEST 1984


From:      Doug Gwyn (VLD/VMB) <gwyn at brl-vld>

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);



More information about the Comp.unix mailing list