add closefrom() call
delphij at delphij.net
Mon Jul 9 07:00:39 UTC 2007
Robert Watson wrote:
> The Solaris implementation appears to implement two strategies:
> (1) If procfs is mounted, list the fd directory to get a list of open fds,
> then close those by number.
> (2) If procfs is not mounted, query the number of open fds using the
> limit interface, then sequentially close until the right number close.
> Hence my question as to whether there's actually a big benefit or not --
> do we think closefrom() is a performance-critical function?
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...
Xin LI <delphij at delphij.net> http://www.delphij.net/
FreeBSD - The Power to Serve!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070709/f8b8c300/signature.pgp
More information about the freebsd-hackers