[GHC] #4363: openFile sharing permissions are inconsistent
across platforms
GHC
cvs-ghc at haskell.org
Sat Oct 9 16:32:12 EDT 2010
#4363: openFile sharing permissions are inconsistent across platforms
---------------------------------+------------------------------------------
Reporter: jystic | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 6.12.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Windows | Blocking:
Architecture: Unknown/Multiple | Failure: Incorrect result at runtime
---------------------------------+------------------------------------------
Comment(by simonmar):
Replying to [comment:5 NeilMitchell]:
> I've been bitten by this in practice several times, as has Max
Bolingbroke. We have things where Haskell writes out a file which we than
cat in to the file we really wanted to write to avoid this problem. It's
even more annoying that it's done to satisfy the standard, but that on
Linux you don't satisfy the standard and it's far more convenient. Windows
is perfectly capable of doing what Linux does - I'd love it to be changed.
I understand the inconvenience, but just wanted to point out that we do
comply with the standard on Linux. The difference is that on Linux we
implement the locking ourselves, locally to the Haskell process. We could
have used `flock()` on Linux, and conversely, we could probably implement
our own in-process locking on Windows (not that I think we should do
this).
Anyway, the current situation is both inconsistent and inconvenient, and I
agree we should do something about it.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4363#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list