[GHC] #9058: System.IO.openTempFile does not scale
GHC
ghc-devs at haskell.org
Wed Apr 30 11:13:37 UTC 2014
#9058: System.IO.openTempFile does not scale
-------------------------------------+------------------------------------
Reporter: slyfox | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by slyfox):
Here is one simple solution. it basically changes
prefix ++ getpid() ++ suffix
for
prefix ++ rand() ++ rand() ++ suffix
Technically rand() might be thread-unsafe
(but not on glibc, there random_r() is used silently)
but i don't think it's a troblem at all.
Otherwise we could use time-based timestamp, but picking
precise time source (to use it more, than 1000 times a second)
might be a problem.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9058#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list