file locked even though hClose called
If I open the same file twice with openFile, then close both handles, and then use writeFile to overwrite the file, I get a locked file error.
I have attached a file which includes three test cases. One always fails, one always succeeds, and one sometimes fails when run multiple times, but only in GHCi.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.8.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries/base |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |