[GHC] #3937: Cannot killThread in listen/accept on Windows threaded runtime

GHC trac at galois.com
Wed Mar 24 08:17:51 EDT 2010


#3937: Cannot killThread in listen/accept on Windows threaded runtime
-------------------------------+--------------------------------------------
    Reporter:  guest           |        Owner:               
        Type:  bug             |       Status:  new          
    Priority:  normal          |    Milestone:  6.14.1       
   Component:  Runtime System  |      Version:  6.12.1       
    Keywords:                  |   Difficulty:               
          Os:  Windows         |     Testcase:               
Architecture:  x86             |      Failure:  Runtime crash
-------------------------------+--------------------------------------------

Comment(by guest):

 Hmm... As far as I understand the code... we try hard to call fdReady just
 before calling accept. In theory fdReady should say false and accept
 should not be called at all until the socket will be back in ready to read
 state. So accept is not treated as blocking call, otherwise non-threaded
 runtime couldn't work at all... I'm pretty sure I'm missing something
 here.

 MVar solution will not work as I really want it to stop listening on that
 socket.

 Scenario is GHCi (interpreted) and :main, app-exit, :reload, :main.
 Exiting app by clean means (app-exit) does not work for me.

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


More information about the Glasgow-haskell-bugs mailing list