[Haskell-cafe] Race conditions with threadWait(Read/Write) and closeFdWith

Leon Smith leon.p.smith at gmail.com
Mon Sep 1 13:06:02 UTC 2014


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.  ;-)

best,
Leon


On Mon, Sep 1, 2014 at 8:45 AM, Brandon Allbery <allbery.b at gmail.com> wrote:

> On Mon, Sep 1, 2014 at 4:17 AM, Leon Smith <leon.p.smith at gmail.com> wrote:
>
>> 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
>
>
> 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?
>
> --
> brandon s allbery kf8nh                               sine nomine
> associates
> allbery.b at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140901/37cb3255/attachment.html>


More information about the Haskell-Cafe mailing list