From a0ad9a42cdfa42d9c4bb51bcc67b9a6bff3b05f4 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 14 Sep 2011 17:05:35 -0700 Subject: Unsupervise tasks before the scheduler kills them. Unblock before yield->fail --- src/rt/rust_task.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index bb31e4340a5..ffa9e5b7e99 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -255,6 +255,9 @@ rust_task::yield(size_t time_in_us) { name, this, time_in_us); if (killed) { + if (blocked()) { + unblock(); + } killed = false; fail(); } -- cgit 1.4.1-3-g733a5