Re: add closefrom() call

看板FB_hackers作者時間18年前 (2007/07/24 10:55), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串16/26 (看更多)
Joerg Sonnenberger wrote: > On Mon, Jul 09, 2007 at 11:46:14PM -0400, Ighighi wrote: >> Calling F_MAXFD everytime we close a file descriptor would be heavy >> having too much fd's. >> On the other hand, it wouldn't make much a difference to just start from >> getdtablesize() - 1. > > I fully agree. That is the second version of closefrom in DragonFly -- > for the purpose of libc_r BTW. This is silly.. All the code needed to do this is already in the kernel. It's needed at exit time. Make a syscall as a front end to it and be done with it. > > Joerg > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #16fMe800 (FB_hackers)
討論串 (同標題文章)
文章代碼(AID): #16fMe800 (FB_hackers)