rt: Don't kill tasks while they are in a callback from C
This commit is contained in:
parent
3f4872f032
commit
d5e7f0d113
4 changed files with 56 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue