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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"