Don't try to close every single file descriptor up to _SC_OPEN_MAX in csh.
authoranton <anton@openbsd.org>
Tue, 20 Jun 2017 16:44:06 +0000 (16:44 +0000)
committeranton <anton@openbsd.org>
Tue, 20 Jun 2017 16:44:06 +0000 (16:44 +0000)
commit0b2eaac31c75f9e1d1f1d8c5e2cdef94df157a12
tree20705f528c7021b6ee7592071681db5c7be903a6
parentbd38a9bdcd5e888bff7de4d3a7713580f6a52c14
Don't try to close every single file descriptor up to _SC_OPEN_MAX in csh.
Instead, close the fds that reside in between the gaps of used fds and once the
largest used fd is reached call closefrom().

ok deraadt@
bin/csh/misc.c