From 1fa05e8e2f40273e8a7f7572220d21037284600b Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 22 Nov 2004 10:26:46 +0000 Subject: [PATCH] [project @ 2004-11-22 10:26:46 by simonmar] More fixes to the sample code (thanks to Satnam Singh for pointing out a problem). --- Control/Concurrent.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Control/Concurrent.hs b/Control/Concurrent.hs index e820d17..3b7f784 100644 --- a/Control/Concurrent.hs +++ b/Control/Concurrent.hs @@ -506,9 +506,9 @@ runInUnboundThread action = do > forkChild :: IO () -> IO () > forkChild io = do > mvar <- newEmptyMVar -> forkIO (io `finally` putMVar mvar ()) > childs <- takeMVar children > putMVar children (mvar:childs) +> forkIO (io `finally` putMVar mvar ()) > > main = > later waitForChildren $ -- 1.7.10.4