Now that we have dup2(), csh can use it instead of close()+dup().
authorguenther <guenther@openbsd.org>
Tue, 20 Aug 2024 23:40:39 +0000 (23:40 +0000)
committerguenther <guenther@openbsd.org>
Tue, 20 Aug 2024 23:40:39 +0000 (23:40 +0000)
commitb05220827cf0816361ac08bbd1ba47907bab4f49
treef5f138dcc6589865da43777339db1321f71e4028
parentc12edff5239c9d939d6ac0922d72bfd235b47f20
Now that we have dup2(), csh can use it instead of close()+dup().
Also, as used here, dup/dup2 will clear the close-on-exec flag, so
delete the superfluous fcntl(F_SETFD,0) calls

ok deraadt@
bin/csh/sem.c