[GHC] #1185: can't do I/O in the child of forkProcess with -threaded

GHC trac at galois.com
Thu Mar 1 10:15:20 EST 2007


#1185: can't do I/O in the child of forkProcess with -threaded
-------------------------------+--------------------------------------------
    Reporter:  simonmar        |       Owner:         
        Type:  bug             |      Status:  new    
    Priority:  normal          |   Milestone:  _|_    
   Component:  Runtime System  |     Version:  6.6    
    Severity:  minor           |    Keywords:         
  Difficulty:  Easy (1 hr)     |    Testcase:         
Architecture:  Unknown         |          Os:  Unknown
-------------------------------+--------------------------------------------
`forkProcess` kills all threads, as advertised.  Unfortunately this
 includes the I/O manager thread, so trying to do I/O in the child of
 `forkProcess` leads to deadlock.  It might be possible to fix this, but
 we'd need to add a way to restart the I/O manager thread.

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


More information about the Glasgow-haskell-bugs mailing list