Fix bug in flushStdHandles()
authorSimon Marlow <marlowsd@gmail.com>
Thu, 24 Nov 2011 10:37:14 +0000 (10:37 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 24 Nov 2011 10:37:56 +0000 (10:37 +0000)
Was causing occasional failure in some threaded2 tests.

rts/RtsStartup.c

index c09d5ed..c451292 100644 (file)
@@ -431,7 +431,7 @@ static void flushStdHandles(void)
 {
     Capability *cap;
     cap = rts_lock();
-    rts_evalIO(cap, flushStdHandles_closure, NULL);
+    cap = rts_evalIO(cap, flushStdHandles_closure, NULL);
     rts_unlock(cap);
 }