summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-08-06 16:34:51 +0000
committerache <ache@FreeBSD.org>1997-08-06 16:34:51 +0000
commit9f4c4482b58a79bcb4de929e2cd37b10b2bc0b52 (patch)
treef2a0f3c0b018b19ea7a635605e67d11a1878c645 /sbin
parenta867dc6278b445ee6681b11c294f291b1fdf2b09 (diff)
downloadFreeBSD-src-9f4c4482b58a79bcb4de929e2cd37b10b2bc0b52.zip
FreeBSD-src-9f4c4482b58a79bcb4de929e2cd37b10b2bc0b52.tar.gz
runshutdown(): get rid of getdtablesize loop, it gains nothing now
but can waste time if many descriptors are available
Diffstat (limited to 'sbin')
-rw-r--r--sbin/init/init.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index 6e63c55..2070ed3 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: init.c,v 1.24 1997/08/02 00:22:49 davidn Exp $
+ * $Id: init.c,v 1.25 1997/08/06 16:07:52 ache Exp $
*/
#ifndef lint
@@ -1459,9 +1459,6 @@ runshutdown()
(void) sigaction(SIGTSTP, &sa, (struct sigaction *)0);
(void) sigaction(SIGHUP, &sa, (struct sigaction *)0);
- for (fd = getdtablesize(); fd-- > 2; )
- (void)close(fd);
-
if ((fd = open(_PATH_CONSOLE, O_RDWR)) == -1)
warning("can't open %s: %m", _PATH_CONSOLE);
else {
OpenPOWER on IntegriCloud