[Haskell-cafe] File locked unnecessarily (the continuation)

2007-01-19 Thread Arie Peterson
Hi all, Some time ago I reported a strange file locking problem. I have reduced my offending program to a relatively small size. This reduction process was quite entertaining. At one point, I could reliably turn the locking off and on by removing and reintroducing a certain unused import :s. I

[Haskell-cafe] File locked unnecessarily (the file)

2007-01-19 Thread Arie Peterson
Except that the example was not attached. Sorry. Greetings, Arie min.tar.gz Description: application/gzip ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] File locked unnecessarily

2006-12-04 Thread Ian Lynagh
On Sun, Dec 03, 2006 at 08:13:37PM +0100, Arie Peterson wrote: Does anyone know what could cause this locking and/or how to prevent it? Nothing else springs to mind. Are you able to send an example that shows the problem? (obviously the smaller the example, the better). Thanks Ian

[Haskell-cafe] File locked unnecessarily

2006-12-03 Thread Arie Peterson
Hi, After a partial rewrite of my webserver, it is suffering from locked files: /path/to/file: openBinaryFile: resource busy (file is locked) The file in question really shouldn't be locked: - Only my server knows of the file's existence. - Only one thread accesses the file. - The

Re: [Haskell-cafe] File locked unnecessarily

2006-12-03 Thread Vyacheslav Akhmechet
Are you using hGetContents? If you are, take a closer look at the documentation. The function creates a lazy stream and until you finish reading from it the file will be in the semi-closed state (which means it will be locked). On 12/3/06, Arie Peterson [EMAIL PROTECTED] wrote: Hi, After a