dup2 simulator

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


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

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



More information about the Comp.unix.wizards mailing list