Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jan 2001 12:00:17 -0800 (PST)
From:      Matt Dillon <dillon@earth.backplane.com>
To:        mouss <usebsd@free.fr>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: [kernel patch] fcntl(...) to close many descriptors
Message-ID:  <200101262000.f0QK0HJ35675@earth.backplane.com>
References:  <4.3.0.20010126193228.06e2a200@bluesun> <4.3.0.20010126204903.06d58910@pop.free.fr>

next in thread | previous in thread | raw e-mail | index | archive | help

:
: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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101262000.f0QK0HJ35675>