Final bikeshedding call: Fixing Control.Exception.bracket

Brandon Allbery allbery.b at gmail.com
Thu Nov 13 06:46:47 UTC 2014


On Wed, Nov 12, 2014 at 10:47 PM, Eric Mertens <emertens at gmail.com> wrote:

> It's not vulnerable to the same issue because hClose can't block (as far
> as I know) because it can't be in use at the time that clean up is running.
>

This sounds unsafe to me. System file descriptors are per process, and
there are at least three such that *must* be per process (stdin, stdout,
stderr). And, while closing those isn't especially common, it can be and is
done sometimes. Can you guarantee that the corresponding handle's not in
use?

-- 
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/libraries/attachments/20141113/017757c8/attachment.html>


More information about the Libraries mailing list