#1602: GHC.Handle.fdToHandle' locks regular files
-----------------------------------+----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Runtime System | Version: 6.6.1
Severity: normal | Resolution: invalid
Keywords: | Difficulty: Unknown
Os: Unknown | Testcase:
Architecture: Unknown |
-----------------------------------+----------------------------------------
Changes (by igloo):
* resolution: => invalid
* status: new => closed
Comment:
http://haskell.org/onlinereport/io.html section "21.2.3 File locking"
says
{{{
Implementations should enforce as far as possible, at least locally to the
Haskell process, multiple-reader single-writer locking on files. That is,
there may either be many handles on the same file which manage input, or
just one handle on the file which manages output.
}}}
I'm not sure if this was done to combat problems with lazy IO, or in order
to make the behaviour the same on all OSes, but GHC is just following the
Haskell 98 report here.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1602>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs