X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=rts%2FSchedule.c;h=375520d011327b8d7cb885b353394db5273d06be;hb=8cc74db64356bd332a11c73788c4108e2e3c5acd;hp=dee6a557a2f9feb1672892c9a737a594eb3c060e;hpb=b5d7276113c4eaf0dfbb8d12c80c1111d47033cd;p=ghc-hetmet.git diff --git a/rts/Schedule.c b/rts/Schedule.c index dee6a55..375520d 100644 --- a/rts/Schedule.c +++ b/rts/Schedule.c @@ -2202,6 +2202,9 @@ forkProcess(HsStablePtr *entry ACQUIRE_LOCK(&sched_mutex); for (task = all_tasks; task != NULL; task=task->all_link) { if (task != cap->running_task) { +#if defined(THREADED_RTS) + initMutex(&task->lock); // see #1391 +#endif discardTask(task); } }