Kernel: Process::exit() unblocks the whole lock before blocking

This commit is contained in:
Bananymous 2023-07-24 22:28:04 +03:00
parent 432c296b7b
commit 642a6aa4ad
1 changed files with 2 additions and 1 deletions

View File

@ -135,6 +135,7 @@ namespace Kernel
while (m_exit_status.waiting > 0)
{
m_exit_status.semaphore.unblock();
while (m_lock.is_locked())
m_lock.unlock();
Scheduler::get().reschedule();
m_lock.lock();