Re: add closefrom() call

看板FB_hackers作者時間18年前 (2007/07/24 10:54), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串14/26 (看更多)
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig81B7DCE97DE52E2C444B710B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Robert Watson wrote: > The Solaris implementation appears to implement two strategies: >=20 > (1) If procfs is mounted, list the fd directory to get a list of open f= ds, > then close those by number. >=20 > (2) If procfs is not mounted, query the number of open fds using the > resource > limit interface, then sequentially close until the right number clo= se. >=20 > Hence my question as to whether there's actually a big benefit or not -= - > do we think closefrom() is a performance-critical function? Nope. I will try to see if we have some way to expose lastfile to userland, or whether we have some better approach to implement this in userland next week if I would have some spare time... Cheers, --=20 Xin LI <delphij@delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enig81B7DCE97DE52E2C444B710B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGkd0FOfuToMruuMARCmsbAJ9svdtYrisLLES1xLoAxkRc0AYUVgCfZHY1 H8Zpj5K7/RH9PgXbQbAJ+Lc= =Aucr -----END PGP SIGNATURE----- --------------enig81B7DCE97DE52E2C444B710B--
文章代碼(AID): #16fMdx00 (FB_hackers)
討論串 (同標題文章)
文章代碼(AID): #16fMdx00 (FB_hackers)