Date: Tue, 10 Jul 2007 10:53:02 -0700 From: Julian Elischer <julian@elischer.org> To: freebsd-hackers@freebsd.org Subject: Re: add closefrom() call Message-ID: <4693C77E.7070806@elischer.org> In-Reply-To: <20070710123634.GD1194@britannica.bec.de> References: <46930106.3040503@gmail.com> <20070710123634.GD1194@britannica.bec.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4693C77E.7070806>