tidy up the end of the all_tasks list after forking
authorSimon Marlow <marlowsd@gmail.com>
Mon, 29 Mar 2010 13:22:53 +0000 (13:22 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 29 Mar 2010 13:22:53 +0000 (13:22 +0000)
rts/Task.c

index e2f363b..9707251 100644 (file)
@@ -292,6 +292,7 @@ discardTasksExcept (Task *keep)
         }
     }
     all_tasks = keep;
         }
     }
     all_tasks = keep;
+    keep->all_link = NULL;
     RELEASE_LOCK(&sched_mutex);
 }
 
     RELEASE_LOCK(&sched_mutex);
 }