Kernel: Make schedler not crash when unblocking active thread
This was happening when sending signals to processes that were currently running.
This commit is contained in:
parent
6de350ce9d
commit
4599e1dec5
|
@ -328,7 +328,8 @@ namespace Kernel
|
||||||
|
|
||||||
if (node->processor_id == Processor::current_id())
|
if (node->processor_id == Processor::current_id())
|
||||||
{
|
{
|
||||||
ASSERT(node->blocked);
|
if (!node->blocked)
|
||||||
|
return;
|
||||||
m_block_queue.remove_node(node);
|
m_block_queue.remove_node(node);
|
||||||
if (node->blocker)
|
if (node->blocker)
|
||||||
node->blocker->remove_blocked_thread(node);
|
node->blocker->remove_blocked_thread(node);
|
||||||
|
|
Loading…
Reference in New Issue