
#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