Proposal: Stop enforcing single-writer-multi-reader file access

Ian Lynagh igloo at earth.li
Tue Nov 8 14:27:15 CET 2011


On Tue, Nov 08, 2011 at 11:54:02AM +0000, Duncan Coutts wrote:
> 
> And if you switch the default and users have to do their own locking,
> how can they do it? I'm not sure there is any sensible way to do it. Any
> bit of IO code can open any file. If they're already tightly coupled and
> can share an MVar it's fine, but that's not the sort of accidental
> situation that the current implicit locking protects against.

We have the same problem now with any library which you FFI import that
does any file IO.


Thanks
Ian




More information about the Libraries mailing list