#1177: All I/O requests must complete before shutdown on Windows
-------------------------------+--------------------------------------------
    Reporter:  simonmar        |        Owner:  simonmar
        Type:  bug             |       Status:  new     
    Priority:  highest         |    Milestone:  6.8     
   Component:  Runtime System  |      Version:  6.6     
    Severity:  normal          |   Resolution:          
    Keywords:                  |   Difficulty:  Unknown 
          Os:  Windows         |     Testcase:          
Architecture:  Multiple        |  
-------------------------------+--------------------------------------------
Comment (by simonmar):

 Nearly fixed.  I implemented the latter two of the three options:

  * maybe we need two ways to shut down the RTS: forcibly, for program
 exit,
    and more carefully, for DLL shutdown.

  * when shutting down a DLL, we should wait for and/or terminate
 outstanding

 So now program exit doesn't wait for threads to complete, but DLL shutdown
 does.  Fortunately this was possible because DLL shutdown calls hs_exit()
 or equivalently shutdownHaskell(), but program exit calls
 shutdownHaskellAndExit().  hs_exit() now assumes the worst; namely that
 the RTS is about to go away, so it must ensure that any threads which
 might return to RTS code have completed.

 I'll add some more documentation about DLL shutdown before I close this
 bug.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1177>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to