svn commit: r214115 - head/usr.bin/login
Ed Schouten
ed at FreeBSD.org
Wed Oct 20 19:53:30 UTC 2010
Author: ed
Date: Wed Oct 20 19:53:29 2010
New Revision: 214115
URL: http://svn.freebsd.org/changeset/base/214115
Log:
Get rid of hand-rolled closefrom(3).
Modified:
head/usr.bin/login/login.c
Modified: head/usr.bin/login/login.c
==============================================================================
--- head/usr.bin/login/login.c Wed Oct 20 19:52:27 2010 (r214114)
+++ head/usr.bin/login/login.c Wed Oct 20 19:53:29 2010 (r214115)
@@ -233,8 +233,7 @@ main(int argc, char *argv[])
setproctitle("-%s", getprogname());
- for (cnt = getdtablesize(); cnt > 2; cnt--)
- (void)close(cnt);
+ closefrom(3);
/*
* Get current TTY
More information about the svn-src-all
mailing list