Fix bug in IO manager when number of capabilities is changed; fixes #8087
authorIan Lynagh <ian@well-typed.com>
Tue, 23 Jul 2013 20:39:02 +0000 (21:39 +0100)
committerIan Lynagh <ian@well-typed.com>
Tue, 23 Jul 2013 20:39:02 +0000 (21:39 +0100)
Patch from parcs.

libraries/base/GHC/Event/Thread.hs

index ca8ed1e..c4f83a0 100644 (file)
@@ -339,7 +339,7 @@ ioManagerCapabilitiesChanged = do
 
               -- create new IO managers for the new caps:
               forM_ [old_n_caps..new_n_caps-1] $
-                startIOManagerThread eventManagerArray
+                startIOManagerThread new_eventManagerArray
 
               -- update the event manager array reference:
               writeIORef eventManager new_eventManagerArray