[GHC] #10731: System.IO.openTempFile is not thread safe on Windows

GHC ghc-devs at haskell.org
Fri Feb 24 07:17:22 UTC 2017


#10731: System.IO.openTempFile is not thread safe on Windows
-------------------------------------+-------------------------------------
        Reporter:  NeilMitchell      |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  libraries/base    |              Version:  7.10.1
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime crash     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Phyx-):

 [https://msdn.microsoft.com/en-
 us/library/windows/desktop/aa364991(v=vs.85).aspx GetTempFileName] with
 `uUnique` 0 should be thread safe. The call will do most of the steps
 described in comment:2.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10731#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list