Fix #1185 (RTS part, also needs corresponding change to libraries/base)
[ghc-hetmet.git] / rts / Schedule.c
index 539e006..998d846 100644 (file)
@@ -1683,6 +1683,10 @@ forkProcess(HsStablePtr *entry
         initTimer();
         startTimer();
 
+#if defined(THREADED_RTS)
+        cap = ioManagerStartCap(cap);
+#endif
+
        cap = rts_evalStableIO(cap, entry, NULL);  // run the action
        rts_checkSchedStatus("forkProcess",cap);