summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2010-03-29 13:22:53 +0000
committerSimon Marlow <marlowsd@gmail.com>2010-03-29 13:22:53 +0000
commit1991d6e39c1902c8877397622132bb7d6c7c5ebc (patch)
tree08612564875e63a1ccfb629798ae077c8f428f6c /rts
parente74936e39e845923c2e2a239524037d11dee2abd (diff)
downloadhaskell-1991d6e39c1902c8877397622132bb7d6c7c5ebc.tar.gz
tidy up the end of the all_tasks list after forking
Diffstat (limited to 'rts')
-rw-r--r--rts/Task.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/Task.c b/rts/Task.c
index e2f363b321..9707251ca3 100644
--- a/rts/Task.c
+++ b/rts/Task.c
@@ -292,6 +292,7 @@ discardTasksExcept (Task *keep)
}
}
all_tasks = keep;
+ keep->all_link = NULL;
RELEASE_LOCK(&sched_mutex);
}