#3171: threadDelay causes Ctrl-C to be ignored when running interpreted code
---------------------+------------------------------------------------------
Reporter:  chowells  |          Owner:                
    Type:  bug       |         Status:  new           
Priority:  normal    |      Component:  Runtime System
 Version:  6.10.2    |       Severity:  normal        
Keywords:  runghc    |       Testcase:                
      Os:  Linux     |   Architecture:  x86           
---------------------+------------------------------------------------------
 the following program:
 {{{
 import Control.Concurrent
 import Control.Concurrent.MVar
 main = threadDelay 0 >> newEmptyMVar >>= takeMVar
 }}}
 will not respond to Ctrl-C when run via runghc, but does respond to Ctrl-C
 when compiled and executed.

 If the threadDelay is removed, it does respond to Ctrl-C both compiled and
 interpreted.

 In 6.10.1, Ctrl-C has the normal effect whether the program is run
 compiled or interpreted.

 The editline segmentation fault bug prevented us from testing the behavior
 in ghci.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3171>
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