Skip to content
Snippets Groups Projects
Commit d69c149f authored by Serge Petrenko's avatar Serge Petrenko Committed by Vladimir Davydov
Browse files

Fix fiber_join() hang in case fiber_cancel() was called

In case a fiber joining another fiber gets cancelled, it stays suspended
forever and never finishes joining. This happens because fiber_cancel()
wakes the fiber and removes it from all execution queues.
Fix this by adding the fiber back to the wakeup queue of the joined
fiber after each yield.

Closes #3948
parent fcf43533
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment