summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2013-05-27 22:19:01 +0000
committergad <gad@FreeBSD.org>2013-05-27 22:19:01 +0000
commit92ccb9a78d6194c4e65cdc15633b6750a5fefc67 (patch)
treee548d6fdbfc2fc87d1666b5be84b079204ac1817 /lib/libc/i386
parentfa9e5ab43dccec826b1477c944db129ef3a76902 (diff)
downloadFreeBSD-src-92ccb9a78d6194c4e65cdc15633b6750a5fefc67.zip
FreeBSD-src-92ccb9a78d6194c4e65cdc15633b6750a5fefc67.tar.gz
Change the closeallfds() routine to use closefrom() when it is
available (closefrom() was added to FreeBSD in 8.0-release). The selection is made at compile-time, as I still compile a FreeBSD-based version of lpr&friends on other platforms. While testing I out that (at least on my system) lpd has been closing 11095 fd's, when there are only 6 fd's open. The old code took 120 times more clocktime than calling closefrom(). (although that was still less than 2/1000-ths of a second!) Reviewed by: jilles MFC after: 2 weeks
Diffstat (limited to 'lib/libc/i386')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud