rt: Don't kill tasks while they are in a callback from C

This commit is contained in:
Brian Anderson 2012-02-14 00:43:45 -08:00
parent 3f4872f032
commit d5e7f0d113
4 changed files with 56 additions and 6 deletions

View file

@ -576,7 +576,7 @@ port_recv(uintptr_t *dptr, rust_port *port,
// If this task has been killed then we're not going to bother
// blocking, we have to unwind.
if (task->killed) {
if (task->must_fail_from_being_killed()) {
*killed = true;
return;
}