[GHC] #4802: 'current directory' is not thread local

GHC cvs-ghc at haskell.org
Tue Nov 30 11:29:24 CET 2010


#4802: 'current directory' is not thread local
----------------------------------+-----------------------------------------
  Reporter:  tanakh               |          Owner:                  
      Type:  bug                  |         Status:  closed          
  Priority:  normal               |      Milestone:                  
 Component:  libraries/directory  |        Version:  7.0.1           
Resolution:  wontfix              |       Keywords:                  
  Testcase:                       |      Blockedby:                  
Difficulty:                       |             Os:  Unknown/Multiple
  Blocking:                       |   Architecture:  Unknown/Multiple
   Failure:  Documentation bug    |  
----------------------------------+-----------------------------------------
Changes (by simonmar):

  * status:  new => closed
  * resolution:  => wontfix


Comment:

 Correct, the current directory is global process state, not thread-local
 state.  As you say, this is the way it is in Win32 and POSIX threads too.
 If you're doing filesystem operations from multiple threads, then don't
 use the current directory, instead use absolute paths.

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


More information about the Glasgow-haskell-bugs mailing list