forked from Bananymous/banan-os
Kernel: Process::exit() unblocks the whole lock before blocking
This commit is contained in:
parent
432c296b7b
commit
642a6aa4ad
|
@ -135,6 +135,7 @@ namespace Kernel
|
||||||
while (m_exit_status.waiting > 0)
|
while (m_exit_status.waiting > 0)
|
||||||
{
|
{
|
||||||
m_exit_status.semaphore.unblock();
|
m_exit_status.semaphore.unblock();
|
||||||
|
while (m_lock.is_locked())
|
||||||
m_lock.unlock();
|
m_lock.unlock();
|
||||||
Scheduler::get().reschedule();
|
Scheduler::get().reschedule();
|
||||||
m_lock.lock();
|
m_lock.lock();
|
||||||
|
|
Loading…
Reference in New Issue