threadDelay causes Ctrl-C to be ignored when running interpreted code
|Reported by:||chowells||Owned by:||igloo|
|Type of failure:||None/Unknown||Test Case:|
|Related Tickets:||Differential Rev(s):|
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.