threadDelay causes Ctrl-C to be ignored when running interpreted code
|Reported by:||chowells||Owned by:||igloo|
|Type of failure:||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.
Change History (3)
comment:2 Changed 6 years ago by simonmar
- Milestone set to 6.10 branch
- Owner changed from simonmar to igloo
- Type changed from bug to merge