[project @ 2005-11-07 10:20:43 by simonmar]
authorsimonmar <unknown>
Mon, 7 Nov 2005 10:20:43 +0000 (10:20 +0000)
committersimonmar <unknown>
Mon, 7 Nov 2005 10:20:43 +0000 (10:20 +0000)
Fix non-threaded build.

ghc/rts/Schedule.c

index 5f186b2..93a64d8 100644 (file)
@@ -2059,8 +2059,10 @@ forkProcess(HsStablePtr *entry
        }
        RELEASE_LOCK(&sched_mutex);
 
+#if defined(THREADED_RTS)
        // wipe our spare workers list.
        cap->spare_workers = NULL;
+#endif
 
        cap = rts_evalStableIO(cap, entry, NULL);  // run the action
        rts_checkSchedStatus("forkProcess",cap);