<div dir="ltr">Right,  I'm not suggesting changing the allocation strategy.  (although, I think that would be a simpler and more elegant solution...)     I'm pointing out a problem and seeing if anybody has any insight into it,   without patching any kernels.  ;-)<div>
<div><br></div><div>best,</div><div>Leon<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 1, 2014 at 8:45 AM, Brandon Allbery <span dir="ltr"><<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class=""><div class="gmail_quote">On Mon, Sep 1, 2014 at 4:17 AM, Leon Smith <span dir="ltr"><<a href="mailto:leon.p.smith@gmail.com" target="_blank">leon.p.smith@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was very tangentially involved with a use-after-close IO descriptor fault recently,  and I came to realize that descriptor indexes are typically allocated by the smallest available index</blockquote>

</div><br></div>You do realize that Fd is a system file descriptor, and the only way you're going to change its allocation strategy is a kernel patch?<span class="HOEnZb"><font color="#888888"><br><div><br></div>-- <br>
<div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div>
<div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div>

</div>
</font></span></div></div>
</blockquote></div><br></div></div></div></div>