From owner-freebsd-hackers Fri Jan 26 12: 0:47 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id B04AC37B401 for ; Fri, 26 Jan 2001 12:00:30 -0800 (PST) Received: (from dillon@localhost) by earth.backplane.com (8.11.1/8.9.3) id f0QK0HJ35675; Fri, 26 Jan 2001 12:00:17 -0800 (PST) (envelope-from dillon) Date: Fri, 26 Jan 2001 12:00:17 -0800 (PST) From: Matt Dillon Message-Id: <200101262000.f0QK0HJ35675@earth.backplane.com> To: mouss Cc: hackers@FreeBSD.ORG Subject: Re: [kernel patch] fcntl(...) to close many descriptors References: <4.3.0.20010126193228.06e2a200@bluesun> <4.3.0.20010126204903.06d58910@pop.free.fr> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : :At 10:33 26/01/01 -0800, Matt Dillon wrote: :> I think it is worth doing. A quick google search shows that :> the linux folks discussed the AIX thingy in March 1999, but :> I don't think they actually implemented. From the discussion, :> it appears that the fcntl would be useful and (not having seen :> your patches), almost certainly trivial to implement. : : :you're right. (I can resend it as a tar file...) : : :*** kern_descrip.c Fri Jan 26 19:42:18 2001 :--- kern_descrip.c.new Fri Jan 26 20:24:07 2001 :... Yah, something like that. You can test whether the descriptor is valid before calling close() on it, which should make it a lot faster. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message