Re: add closefrom() call
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--
討論串 (同標題文章)
完整討論串 (本文為第 14 之 26 篇):