summaryrefslogtreecommitdiff
path: root/rts/RtsAPI.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2010-05-07 09:32:22 +0000
committerSimon Marlow <marlowsd@gmail.com>2010-05-07 09:32:22 +0000
commit2007d2138cf17efe6a1701510dbafdfc30e8926c (patch)
treebbee43dbaa8f3061ddbd6b6a8a27d0bb791654fd /rts/RtsAPI.c
parent3c6190b0beb551f7637e7edbd1bbff803af3a79e (diff)
downloadhaskell-2007d2138cf17efe6a1701510dbafdfc30e8926c.tar.gz
Fix crash in nested callbacks (#4038)
Broken by "Split part of the Task struct into a separate struct InCall".
Diffstat (limited to 'rts/RtsAPI.c')
-rw-r--r--rts/RtsAPI.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/RtsAPI.c b/rts/RtsAPI.c
index 2479f2038a..fb9c0107a0 100644
--- a/rts/RtsAPI.c
+++ b/rts/RtsAPI.c
@@ -510,7 +510,7 @@ rts_evalLazyIO_ (Capability *cap, HaskellObj p, unsigned int stack_size,
void
rts_checkSchedStatus (char* site, Capability *cap)
{
- SchedulerStatus rc = cap->running_task->stat;
+ SchedulerStatus rc = cap->running_task->incall->stat;
switch (rc) {
case Success:
return;
@@ -529,7 +529,7 @@ rts_checkSchedStatus (char* site, Capability *cap)
SchedulerStatus
rts_getSchedStatus (Capability *cap)
{
- return cap->running_task->stat;
+ return cap->running_task->incall->stat;
}
Capability *