blob: 6db22a13fc1634e520f6a9c7412d58d5559ad645 (
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
|