diff options
author | ed <ed@FreeBSD.org> | 2010-10-20 19:53:29 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-10-20 19:53:29 +0000 |
commit | a431bc988cb49d9e5c49bea91150dd90fb0b88ae (patch) | |
tree | 5a3738f96cf8ed3e49857e03ed2304cd4010ef6f | |
parent | b711dad7ecfecbd6c5aab56f88564553003ca05d (diff) | |
download | FreeBSD-src-a431bc988cb49d9e5c49bea91150dd90fb0b88ae.zip FreeBSD-src-a431bc988cb49d9e5c49bea91150dd90fb0b88ae.tar.gz |
Get rid of hand-rolled closefrom(3).
-rw-r--r-- | usr.bin/login/login.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 3e826d5..e671c8d 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -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 |