Quoth Einar Karttunen <ekarttun@cs.helsinki.fi>:
| On 11.12 22:26, Donn Cave wrote:
| > Quoth Einar Karttunen <ekarttun@cs.helsinki.fi>:
| > | It seems that opening the same file multiple times (one writer
| > | and multiple readers) is not supported at least on *nix with
| > | GHC. I want to use one Handle to use append data till the
| > | end of the file while other Handles perform random access
| > | IO with seeks on the file.
| > 
| > How is it not supported?  What happens with something like this
...
| *** Exception: z: openFile: resource busy (file is locked)

Oh.  Well, that's unfortunate, but at least I see it is documented.
I guess that explains why your solution uses unlockFile.

I suppose you might be able to use Posix.IO functions instead,
but that would probably be even more trouble than your work-around.

        Donn Cave, [EMAIL PROTECTED]
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to