blob: b8b648065b4e279b226793cf8a30476ce70b6592 (
plain)
1
2
3
4
5
6
7
8
9
10
|
-- test for bug #4078
import System.IO
import Control.Concurrent
import System.Exit
main = do
m <- newEmptyMVar
forkIO $ do threadDelay 500000; putMVar m Nothing
forkIO $ do hReady stdin >>= putMVar m . Just
takeMVar m >>= print
|